# 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](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).

## List policies

> Retrieve a list of all the applied policies.

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"WorkloadType":{"name":"workloadType","in":"query","required":false,"description":"Policy for a specific workload type.","schema":{"type":"string","minLength":1,"enum":["Workspace","Training","Distributed","Inference"]}},"FilterByDepartment":{"name":"departmentId","in":"query","description":"Filter using the department id.","required":false,"schema":{"type":"string"}},"FilterByProject":{"name":"projectId","in":"query","description":"project id to filter by","required":false,"schema":{"type":"string"}},"FilterByCluster":{"name":"clusterId","in":"query","description":"Filter using the Universally Unique Identifier (UUID) of the cluster.","required":false,"schema":{"type":"string","format":"uuid"}},"IncludeFallbackPolicies":{"name":"includeFallbackPolicies","in":"query","required":false,"description":"whether to include fallback policies in the list. Default to false.","schema":{"type":"boolean"}}},"schemas":{"PolicyListResponse":{"properties":{"policies":{"type":"array","items":{"$ref":"#/components/schemas/PolicyListEntry"}}}},"PolicyListEntry":{"properties":{"type":{"$ref":"#/components/schemas/PolicyType"},"meta":{"$ref":"#/components/schemas/PolicyMeta"},"status":{"allOf":[{"$ref":"#/components/schemas/PolicySyncStatus"},{"$ref":"#/components/schemas/PolicyValidationStatus"}]}},"nullable":true,"type":"object"},"PolicyType":{"description":"The type of policy which determines the kind of workloads it is affecting","type":"string","enum":["workspace","training","distributed","inference","fallback"]},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"PolicySyncStatus":{"properties":{"clusters":{"type":"array","items":{"$ref":"#/components/schemas/PolicySyncStatusOfCluster"}}}},"PolicySyncStatusOfCluster":{"required":["clusterId","status"],"properties":{"clusterId":{"$ref":"#/components/schemas/ClusterId"},"status":{"description":"Policy sync status of the cluster","type":"string","enum":["Not ready","Applying","Failed","Ready","Pending deletion","Deleting","Deleted","Deletion failed"]},"errorMessage":{"description":"In case sync failed, holds the error message received from the cluster","type":"string","nullable":true}},"type":"object"},"ClusterId":{"description":"The id of the cluster.","type":"string","format":"uuid"},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy":{"get":{"summary":"List policies","description":"Retrieve a list of all the applied policies.","operationId":"list_policies","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/WorkloadType"},{"name":"scope","in":"query","required":false,"description":"filter by this scope.","schema":{"type":"string","enum":["tenant","cluster","department","project"]}},{"$ref":"#/components/parameters/FilterByDepartment"},{"$ref":"#/components/parameters/FilterByProject"},{"$ref":"#/components/parameters/FilterByCluster"},{"$ref":"#/components/parameters/IncludeFallbackPolicies"}],"responses":{"200":{"description":"Request completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyListResponse"}}}},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Get a training policy.

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

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"PolicyScope":{"name":"scope","in":"query","required":true,"description":"The scope that the policy relates to.","schema":{"type":"string","enum":["tenant","cluster","department","project"]}},"FilterByDepartment":{"name":"departmentId","in":"query","description":"Filter using the department id.","required":false,"schema":{"type":"string"}},"FilterByProject":{"name":"projectId","in":"query","description":"project id to filter by","required":false,"schema":{"type":"string"}},"FilterByCluster":{"name":"clusterId","in":"query","description":"Filter using the Universally Unique Identifier (UUID) of the cluster.","required":false,"schema":{"type":"string","format":"uuid"}}},"schemas":{"TrainingPolicyV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyMeta"},"policy":{"$ref":"#/components/schemas/TrainingPolicyDefaultsAndRulesV2"},"effective":{"$ref":"#/components/schemas/TrainingPolicyDefaultsAndRulesV2"},"effectiveUpdatedAt":{"$ref":"#/components/schemas/Timestamp"}},"nullable":true,"type":"object"},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"TrainingPolicyDefaultsAndRulesV2":{"properties":{"defaults":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFields"},{"$ref":"#/components/schemas/NodeRelatedFlatFields"},{"$ref":"#/components/schemas/CommonItemizedDefaults"},{"$ref":"#/components/schemas/AdvancedFlatFields"},{"$ref":"#/components/schemas/ConnectivityDefaults"},{"$ref":"#/components/schemas/TrainingFields"},{"$ref":"#/components/schemas/Security"},{"$ref":"#/components/schemas/ComputeDefaults"},{"$ref":"#/components/schemas/StorageDefaults"},{"$ref":"#/components/schemas/NonInferenceFlatFields"}],"nullable":true,"type":"object"},"rules":{"allOf":[{"$ref":"#/components/schemas/TrainingPolicyRulesV2"}],"nullable":true,"type":"object"},"imposedAssets":{"$ref":"#/components/schemas/ImposedAssets"},"status":{"$ref":"#/components/schemas/PolicyValidationStatus"}},"nullable":true,"type":"object"},"CommonFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridable"},{"$ref":"#/components/schemas/ContainerNonOverridable"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPod"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPG"}],"nullable":true,"type":"object"},"ContainerOverridable":{"description":"Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"command":{"description":"A command to the server as the entry point of the container running the workload.","type":"string","minLength":1,"nullable":true},"args":{"description":"Arguments to the command that the container running the workload executes.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ContainerNonOverridable":{"description":"Container non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"image":{"description":"Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a workload.","type":"string","minLength":1,"nullable":true},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicy"},"workingDir":{"description":"Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.","type":"string","minLength":1,"nullable":true},"createHomeDir":{"description":"When set to `true`, creates a home directory for the container.","type":"boolean","nullable":true},"probes":{"$ref":"#/components/schemas/Probes"}},"nullable":true,"type":"object"},"ImagePullPolicy":{"description":"Image pull policy. Defaults to `Always` if `:latest` tag is specified, otherwise it is `IfNotPresent`.","type":"string","minLength":1,"enum":["Always","Never","IfNotPresent"],"nullable":true},"Probes":{"description":"Probes are used to determine if the container is healthy and ready to accept traffic.","type":"object","properties":{"readiness":{"$ref":"#/components/schemas/Probe"}},"nullable":true},"Probe":{"type":"object","properties":{"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness or readiness probes are initiated.","type":"integer","format":"int32","minimum":0,"nullable":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe.","type":"integer","format":"int32","minimum":1,"nullable":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out.","type":"integer","format":"int32","minimum":1,"nullable":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed.","type":"integer","format":"int32","minimum":1,"nullable":true},"failureThreshold":{"description":"When a probe fails, the number of times to try before giving up.","type":"integer","format":"int32","minimum":1,"nullable":true},"handler":{"$ref":"#/components/schemas/ProbeHandler"}},"nullable":true},"ProbeHandler":{"description":"The action taken to determine the health of the container. (mandatory)","type":"object","properties":{"httpGet":{"description":"An action based on HTTP Get requests.","type":"object","properties":{"path":{"description":"Path to access on the HTTP server, defaults to /.","type":"string","pattern":"^(\\x2F[a-zA-Z0-9\\-_.\\x2F]*)?$","nullable":true},"port":{"description":"Number of the port to access on the container.","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"host":{"description":"Host name to connect to, defaults to the pod IP.","type":"string","format":"hostname","nullable":true},"scheme":{"$ref":"#/components/schemas/ProbeHandlerScheme"}}}},"nullable":true},"ProbeHandlerScheme":{"description":"Scheme to use for connecting to the host, defaults to HTTP.","type":"string","enum":["HTTP","HTTPS"],"nullable":true},"ResourcesFlatFieldsPerPod":{"description":"Resource parameters.","properties":{"nodeType":{"description":"Nodes (machines), or a group of nodes on which the workload will run. To use this feature, your Administrator will need to label nodes. For more information, see [Group Nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/researcher-setup/limit-to-node-group). When using this flag with with Project-based affinity, it refines the list of allowable node groups set in the Project. For more information, see [Projects](https://docshub.run.ai/guides/platform-management/aiinitiatives/organization/projects).","type":"string","minLength":1,"nullable":true},"nodeAffinityRequired":{"$ref":"#/components/schemas/NodeAffinityRequired"},"podAffinity":{"$ref":"#/components/schemas/PodAffinity"}},"nullable":true,"type":"object"},"NodeAffinityRequired":{"type":"object","description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","properties":{"nodeSelectorTerms":{"description":"A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/components/schemas/NodeSelectorTerm"}}},"nullable":true},"NodeSelectorTerm":{"type":"object","description":"A null or empty node selector term matches no objects. The requirements of them are ANDed.","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"$ref":"#/components/schemas/MatchExpression"}}},"nullable":true},"MatchExpression":{"type":"object","description":"A selector that contains values, a key, and an operator that relates the key and values.","properties":{"key":{"description":"The label key that the selector applies to (mandatory).","type":"string"},"operator":{"$ref":"#/components/schemas/MatchExpressionOperator"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.","type":"array","items":{"type":"string"}}},"required":["key","operator"],"nullable":true},"MatchExpressionOperator":{"description":"Represents a key's relationship to a set of values (mandatory).","type":"string","enum":["In","NotIn","Exists","DoesNotExist","Gt","Lt"]},"PodAffinity":{"description":"Pod affinity scheduling rules (e.g. co-locate this workload in the same node, zone, etc. as some other workloads).","type":"object","properties":{"type":{"$ref":"#/components/schemas/PodAffinityType"},"key":{"description":"The label key to use. (mandatory)","type":"string","nullable":true}},"nullable":true},"PodAffinityType":{"description":"The affinity type, required or preferred. (mandatory)","type":"string","enum":["Required","Preferred"],"nullable":true},"ResourcesFlatFieldsPerPG":{"description":"Resource parameters.","properties":{"category":{"$ref":"#/components/schemas/Category"},"priorityClass":{"$ref":"#/components/schemas/PriorityClass"}},"nullable":true,"type":"object"},"Category":{"description":"Specify the workload category assigned to the workload. Categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.","type":"string","nullable":true},"PriorityClass":{"description":"Specifies the priority class for the workload.  Valid values are: very-low, low, medium-low, medium, medium-high, high, very-high.  You can use this parameter to adjust the workload's scheduling behavior.  Each workload type has a default priority.  To view the default priority for each workload type, use the GET /workload-types endpoint.","type":"string","nullable":true},"NodeRelatedFlatFields":{"description":"Node related parameters.","properties":{"nodePools":{"description":"A prioritized list of node pools for the scheduler to run the workload on. The scheduler will always try to use the first node pool before moving to the next one if the first is not available.","type":"array","items":{"type":"string"},"nullable":true}},"nullable":true,"type":"object"},"CommonItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldDefaults"},{"$ref":"#/components/schemas/AdvancedItemizedDefaults"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldDefaults":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/EnvironmentVariablesDefaults"}},"nullable":true,"type":"object"},"EnvironmentVariablesDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/EnvironmentVariables"}},"nullable":true,"type":"object"},"EnvironmentVariables":{"description":"Set of environment variables to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"nullable":true},"EnvironmentVariable":{"description":"Details of an environment variable which is populated into the container.","properties":{"name":{"description":"The name of the environment variable. (mandatory)","type":"string","minLength":1,"nullable":true},"value":{"description":"The value of the environment variable. (mutually exclusive with secret, credential, configMap and podFieldRef)","type":"string","nullable":true},"secret":{"$ref":"#/components/schemas/EnvironmentVariableSecret"},"configMap":{"$ref":"#/components/schemas/EnvironmentVariableConfigMap"},"podFieldRef":{"$ref":"#/components/schemas/EnvironmentVariablePodFieldReference"},"exclude":{"description":"Use 'true' in case the environment variable is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true},"description":{"description":"Description of the environment variable.","type":"string","nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableSecret":{"description":"Details of the secret and key use to populate the environment variable","properties":{"name":{"description":"The name of the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableConfigMap":{"description":"Details of the configMap and key use to populate the environment variable","properties":{"name":{"description":"The name of the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariablePodFieldReference":{"description":"Details of the field-reference and key use to populate the environment variable","properties":{"path":{"description":"The field path resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"AdvancedItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldDefaults"},{"$ref":"#/components/schemas/LabelsFieldDefaults"},{"$ref":"#/components/schemas/ImagePullSecretsFieldDefaults"},{"$ref":"#/components/schemas/TolerationsFieldDefaults"}],"type":"object","nullable":true},"AnnotationsFieldDefaults":{"properties":{"annotations":{"$ref":"#/components/schemas/AnnotationsDefaults"}},"nullable":true,"type":"object"},"AnnotationsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Annotations"}},"nullable":true,"type":"object"},"Annotations":{"description":"Set of annotations to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Annotation"},"nullable":true},"Annotation":{"description":"Annotation details to be populated into the container.","properties":{"name":{"description":"The name of the annotation (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the annotation.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the annotation is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"LabelsFieldDefaults":{"properties":{"labels":{"$ref":"#/components/schemas/LabelsDefaults"}},"nullable":true,"type":"object"},"LabelsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Labels"}},"nullable":true,"type":"object"},"Labels":{"description":"Set of labels to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Label"},"nullable":true},"Label":{"description":"Label details to be populated into the container.","properties":{"name":{"description":"The name of the label (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the label.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ImagePullSecretsFieldDefaults":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsDefaults"}},"nullable":true,"type":"object"},"ImagePullSecretsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/ImagePullSecrets"}},"nullable":true,"type":"object"},"ImagePullSecrets":{"description":"A list of references to Kubernetes secrets in the same namespace used for pulling container images.","type":"array","items":{"$ref":"#/components/schemas/ImagePullSecret"},"nullable":true},"ImagePullSecret":{"description":"A reference to a secret in the same namespace used to pull container images.","properties":{"name":{"type":"string","description":"The name of the Kubernetes secret containing the image pull credentials."},"userCredential":{"type":"boolean","description":"Indicates whether the secret is a user credential. Set to true if the secret was created by the user and is only accessible by them.","nullable":true},"exclude":{"description":"Use 'true' in case the secret is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"TolerationsFieldDefaults":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsDefaults"}},"nullable":true,"type":"object"},"TolerationsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Toleration"},"instances":{"$ref":"#/components/schemas/Tolerations"}},"nullable":true,"type":"object"},"Toleration":{"description":"Toleration details.","properties":{"name":{"description":"The name of the toleration.","type":"string","minLength":1,"nullable":true},"operator":{"$ref":"#/components/schemas/TolerationOperator"},"key":{"description":"The taint key that the toleration applies to. (mandatory)","type":"string","nullable":true},"value":{"description":"The taint value the toleration matches to. Mandatory if operator is Exists, forbidden otherwise.","type":"string","nullable":true},"effect":{"$ref":"#/components/schemas/TolerationEffect"},"seconds":{"description":"The period of time the toleration tolerates the taint. Valid only if effect is NoExecute. taint.","type":"integer","minimum":1,"nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TolerationOperator":{"description":"A key's relationship to the value. Equal uses key and value. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. (mandatory)","type":"string","enum":["Equal","Exists"],"nullable":true},"TolerationEffect":{"description":"The taint effect to match. (mandatory)","type":"string","enum":["NoSchedule","NoExecute","PreferNoSchedule","Any"],"nullable":true},"Tolerations":{"description":"Set of tolerations to apply to the workload.","type":"array","items":{"$ref":"#/components/schemas/Toleration"},"nullable":true},"AdvancedFlatFields":{"properties":{"terminateAfterPreemption":{"description":"Indicates if the job should be terminated by the system after it has been preempted.","type":"boolean","nullable":true},"autoDeletionTimeAfterCompletionSeconds":{"description":"Specifies the duration after which a finished workload (completed or failed) will be automatically deleted. The default is 30 days.","format":"int64","type":"integer","nullable":true},"terminationGracePeriodSeconds":{"description":"Duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down).","format":"int64","type":"integer","minimum":0,"nullable":true},"backoffLimit":{"description":"Specifies the number of retries before marking a workload as failed (not applicable to Inference workloads). The default value is 6.","format":"int64","type":"integer","nullable":true},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicy"}},"nullable":true,"type":"object"},"RestartPolicy":{"description":"Specify the restart policy of the workload pods. Default is empty, which is determine by the framework default","type":"string","minLength":1,"enum":["Always","Never","OnFailure"],"nullable":true},"ConnectivityDefaults":{"properties":{"ports":{"$ref":"#/components/schemas/PortsDefaults"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsDefaults"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsDefaults"}},"nullable":true,"type":"object"},"PortsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Port"},"instances":{"$ref":"#/components/schemas/Ports"}},"nullable":true,"type":"object"},"Port":{"description":"A port for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"serviceType":{"$ref":"#/components/schemas/PortServiceType"},"external":{"description":"The external port which allows a connection to the container port. If not specified, the port will be auto-generated by the system..","type":"integer","format":"int32","nullable":true},"toolType":{"description":"The tool type that runs on this port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this port.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PortServiceType":{"description":"The service type of the port (mandatory).","type":"string","enum":["LoadBalancer","NodePort","ClusterIP"],"nullable":true},"Ports":{"description":"Set of container ports that the workload exposes.","type":"array","items":{"$ref":"#/components/schemas/Port"},"nullable":true},"ExposedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrl"},"instances":{"$ref":"#/components/schemas/ExposedUrls"}},"nullable":true,"type":"object"},"ExposedUrl":{"description":"A URL for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","nullable":true},"url":{"description":"The URL for connecting to the container port. If not specified, the URL will be auto-generated by the system..","type":"string","nullable":true},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"toolType":{"description":"The tool type that runs on this container port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this url.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the instance is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExposedUrls":{"description":"Set of container ports that the workload exposes via URLs.","type":"array","items":{"$ref":"#/components/schemas/ExposedUrl"},"nullable":true},"RelatedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrl"},"instances":{"$ref":"#/components/schemas/RelatedUrls"}},"nullable":true,"type":"object"},"RelatedUrl":{"description":"A URL that is related to the workload. For example, a URL to an external server providing statistics or logging about the workload.","properties":{"url":{"description":"The URL for connecting an external service related to the workload. (mandatory)","type":"string","nullable":true},"type":{"description":"The type of service that the url provides. For example, wandb (Weights & Biases). (mandatory)","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"RelatedUrls":{"description":"Set of URLs that are related to the workload.","type":"array","items":{"$ref":"#/components/schemas/RelatedUrl"},"nullable":true},"TrainingFields":{"allOf":[{"$ref":"#/components/schemas/CompletionsField"},{"$ref":"#/components/schemas/ParallelismField"}],"nullable":true,"type":"object"},"CompletionsField":{"properties":{"completions":{"description":"Used with Hyperparameter Optimization. Specifies the number of successful pods the job should reach to be completed. The Job will be marked as successful once the specified amount of pods has been reached (applicable to standard training only).","type":"integer","format":"int32","nullable":true}},"nullable":true,"type":"object"},"ParallelismField":{"properties":{"parallelism":{"description":"Used with Hyperparameter Optimization. Specifies the maximum number of pods the workload should run at any given time (applicable to standard training only).","type":"integer","format":"int32","nullable":true}},"nullable":true,"type":"object"},"Security":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFields"}},"nullable":true,"type":"object"},"SecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFields"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFields"}],"nullable":true,"type":"object"},"CommonSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridable"},{"$ref":"#/components/schemas/CommonSecurityOverridable"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridable":{"description":"Security non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSource"},"capabilities":{"description":"Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.","type":"array","items":{"$ref":"#/components/schemas/Capability"},"nullable":true},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileType"},"runAsNonRoot":{"description":"Force the container to run as a non-root user.","type":"boolean","nullable":true},"readOnlyRootFilesystem":{"description":"If true, mounts the container's root filesystem as read-only.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"UidGidSource":{"description":"Indicate the way to determine the user and group ids of the container. The options are a. `fromTheImage` - user and group ids are determined by the docker image that the container runs. this is the default option. b. `custom` - user and group ids can be specified in the environment asset and/or the workload creation request. c. `idpToken` - user and group ids are determined according to the identity provider (idp) access token. This option is intended for internal use of the environment UI form. For more information, see [User Identity](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/runai-setup/config/non-root-containers/).","type":"string","enum":["fromTheImage","fromIdpToken","custom"],"nullable":true},"Capability":{"type":"string","enum":["AUDIT_CONTROL","AUDIT_READ","AUDIT_WRITE","BLOCK_SUSPEND","CHOWN","DAC_OVERRIDE","DAC_READ_SEARCH","FOWNER","FSETID","IPC_LOCK","IPC_OWNER","KILL","LEASE","LINUX_IMMUTABLE","MAC_ADMIN","MAC_OVERRIDE","MKNOD","NET_ADMIN","NET_BIND_SERVICE","NET_BROADCAST","NET_RAW","SETGID","SETFCAP","SETPCAP","SETUID","SYS_ADMIN","SYS_BOOT","SYS_CHROOT","SYS_MODULE","SYS_NICE","SYS_PACCT","SYS_PTRACE","SYS_RAWIO","SYS_RESOURCE","SYS_TIME","SYS_TTY_CONFIG","SYSLOG","WAKE_ALARM"]},"SeccompProfileType":{"description":"Indicates which kind of seccomp profile will be applied to the container. The options are a. `RuntimeDefault` - the container runtime default profile should be used. b. `Unconfined` - no profile should be applied. c. `Localhost` is not yet supported by Run:ai.","type":"string","enum":["RuntimeDefault","Unconfined","Localhost"],"nullable":true},"CommonSecurityOverridable":{"description":"Security overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"runAsUid":{"description":"The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsUid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"runAsGid":{"description":"The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsGid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"supplementalGroups":{"description":"Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled. Using an empty string implies reverting the supplementary groups of the image.","type":"string","nullable":true}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridable"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridable":{"description":"Security related fields. When used in assets context, those are environment asset fields that cannot be override in the submit workload request.","properties":{"allowPrivilegeEscalation":{"description":"Allow the container running the workload and all launched processes to gain additional privileges after the workload starts. For more information consult the User Identity in Container guide at https://docs.run.ai/admin/runai-setup/config/non-root-containers/","type":"boolean","nullable":true},"hostIpc":{"description":"Whether to enable host IPC. Defaults to false.","type":"boolean","nullable":true},"hostNetwork":{"description":"Whether to enable host networking. Default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ComputeDefaults":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsDefaults"}},"nullable":true,"type":"object"},"ComputeFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFields"},{"$ref":"#/components/schemas/ComputeItemizedFieldsDefaults"}],"nullable":true,"type":"object"},"ComputeFlatFields":{"properties":{"gpuDevicesRequest":{"description":"Requested number of GPU devices. Currently if more than one device is requested, it is not possible to provide values for gpuMemory, gpuPortion or migProfile [deprecated].","type":"integer","format":"int32","nullable":true,"minimum":0},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestType"},"gpuPortionRequest":{"description":"Required if and only if gpuRequestType is portion. States the portion of the GPU to allocate for the created workload, per GPU device, between 0 and 1. The default is no allocated GPUs.","type":"number","format":"double","nullable":true,"minimum":0},"gpuPortionLimit":{"description":"Limitations on the portion consumed by the workload, per GPU device. The system guarantees The gpuPotionLimit must be no less than the gpuPortionRequest.","type":"number","format":"double","nullable":true,"minimum":0},"gpuMemoryRequest":{"description":"Required if and only if gpuRequestType is memory. States the GPU memory to allocate for the created workload, per GPU device. Note that the workload will not be scheduled unless the system can guarantee this amount of GPU memory to the workload.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"gpuMemoryLimit":{"description":"Limitation on the memory consumed by the workload, per GPU device. The system guarantees The gpuMemoryLimit must be no less than gpuMemoryRequest.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"migProfile":{"$ref":"#/components/schemas/MigProfile","depracted":true},"cpuCoreRequest":{"description":"CPU units to allocate for the created workload (0.5, 1, .etc). The workload will receive at least this amount of CPU. Note that the workload will not be scheduled unless the system can guarantee this amount of CPUs to the workload.","format":"double","type":"number","nullable":true,"minimum":0},"cpuCoreLimit":{"description":"Limitations on the number of CPUs consumed by the workload (0.5, 1, .etc). The system guarantees that this workload will not be able to consume more than this amount of CPUs.","format":"double","type":"number","nullable":true,"minimum":0},"cpuMemoryRequest":{"description":"The amount of CPU memory to allocate for this workload (1G, 20M, .etc). The workload will receive at least this amount of memory. Note that the workload will not be scheduled unless the system can guarantee this amount of memory to the workload","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"cpuMemoryLimit":{"description":"Limitations on the CPU memory to allocate for this workload (1G, 20M, .etc). The system guarantees that this workload will not be able to consume more than this amount of memory. The workload will receive an error when trying to allocate more memory than this limit.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"largeShmRequest":{"description":"A large /dev/shm device to mount into a container running the created workload. An shm is a shared file system mounted on RAM.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"GpuRequestType":{"description":"Sets the unit type for GPU resources requests. Stated in terms of portion, memory or  mig profile [deprecated]. Sets the unit type for other GPU request fields. If `gpuDevicesRequest > 1`, only `portion` is supported. If `gpuDeviceRequest = 1`, the request type can be stated as `portion`, `memory` or `migProfile` [deprecated].","type":"string","minLength":1,"enum":["portion","memory","migProfile"],"nullable":true},"MigProfile":{"description":"Required only if `gpuRequestType` is `migProfile`. This states the memory profile to be used for the workload running NVIDIA Multi-Instance GPU (MIG) technology.","type":"string","deprecated":true,"minLength":1,"enum":["1g.5gb","1g.10gb","2g.10gb","2g.20gb","3g.20gb","3g.40gb","4g.20gb","4g.40gb","7g.40gb","7g.80gb"],"nullable":true},"ComputeItemizedFieldsDefaults":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesDefaults"}},"nullable":true,"type":"object"},"ExtendedResourcesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResource"},"instances":{"$ref":"#/components/schemas/ExtendedResources"}},"nullable":true,"type":"object"},"ExtendedResource":{"description":"Quantity of an extended resource.","properties":{"resource":{"description":"The name of the extended resource (mandatory)","type":"string","minLength":1,"nullable":true},"quantity":{"description":"The requested quantity for the resource.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the extended resource is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExtendedResources":{"description":"Extended resources and their quantity.","type":"array","items":{"$ref":"#/components/schemas/ExtendedResource"},"nullable":true},"StorageDefaults":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsDefaults"}},"nullable":true,"type":"object"},"StorageFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsDefaults"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsDefaults"}],"nullable":true,"type":"object"},"CommonStorageFieldsDefaults":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesDefaults"},"pvc":{"$ref":"#/components/schemas/PvcsDefaults"},"hostPath":{"$ref":"#/components/schemas/HostPathsDefaults"},"nfs":{"$ref":"#/components/schemas/NfssDefaults"},"git":{"$ref":"#/components/schemas/GitsDefaults"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsDefaults"},"secretVolume":{"$ref":"#/components/schemas/SecretsDefaults"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsDefaults"}},"nullable":true,"type":"object"},"DataVolumesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeInstance"},"instances":{"$ref":"#/components/schemas/DataVolumeItems"}},"nullable":true,"type":"object"},"DataVolumeInstance":{"allOf":[{"$ref":"#/components/schemas/DataVolume"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"DataVolume":{"properties":{"id":{"description":"The unique identifier of the data volume. (mandatory)","type":"string","format":"uuid","nullable":true},"mountPath":{"description":"The path where the data volume will be mounted. (mandatory)","type":"string","nullable":true}},"nullable":true,"type":"object"},"ExcludeField":{"properties":{"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"type":"object","nullable":true},"DataVolumeItems":{"description":"Set of data volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/DataVolumeInstance"},"nullable":true},"PvcsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcInstance"},"instances":{"$ref":"#/components/schemas/PvcItems"}},"nullable":true,"type":"object"},"PvcInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Pvc"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"StorageInstanceName":{"properties":{"name":{"description":"unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"Pvc":{"allOf":[{"$ref":"#/components/schemas/PvcFieldsUpdatable"},{"$ref":"#/components/schemas/PvcFieldsNonUpdatable"}]},"PvcFieldsUpdatable":{"properties":{"path":{"description":"Local path within the workload to which the PVC bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"PvcFieldsNonUpdatable":{"properties":{"existingPvc":{"description":"Verify existing PVC. PVC is assumed to exist when set to `true`. If set to `false`, the PVC will be created, if it does not exist.","type":"boolean","default":false,"nullable":true},"claimName":{"description":"Name for the PVC. Allow referencing it across workloads. If not provided, a name based on the workload name and scope will be auto-generated.","type":"string","minLength":1,"maxLength":63,"nullable":true},"readOnly":{"description":"Permit only read access to PVC.","type":"boolean","default":false,"nullable":true},"ephemeral":{"description":"Use `true` to set PVC to ephemeral. If set to `true`, the PVC will be deleted when the workload is stopped. Not supported for inference workloads.","type":"boolean","default":false,"nullable":true},"claimInfo":{"$ref":"#/components/schemas/ClaimInfo"},"dataSharing":{"description":"use `true` to share the PVC data to all projects under the selected scope.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"ClaimInfo":{"description":"Claim information for the newly created PVC. The information should not be provided when attempting to use existing PVC.","properties":{"size":{"$ref":"#/components/schemas/PvcClaimSize"},"storageClass":{"description":"Storage class name to associate with the PVC. This parameter may be omitted if there is a single storage class in the system, or you are using the default storage class. For more information, see [Storage class](https://kubernetes.io/docs/concepts/storage/storage-classes).","type":"string","minLength":1,"nullable":true},"accessModes":{"$ref":"#/components/schemas/PvcAccessModes"},"volumeMode":{"$ref":"#/components/schemas/PvcVolumeMode"},"addedAttrValues":{"$ref":"#/components/schemas/PvcAddedAttrValues"}},"nullable":true,"type":"object"},"PvcClaimSize":{"description":"Requested size for the PVC. Mandatory when existingPvc is false. Recommended sizes: TB/GB/MB/TIB/GIB/MIB","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"PvcAccessModes":{"description":"Requested access mode(s) for the newly created PVC.","properties":{"readWriteOnce":{"description":"Requesting claim that can be mounted in read/write mode to exactly one host. This is the default access mode.","type":"boolean","default":true,"nullable":true},"readOnlyMany":{"description":"Requesting claim that can be mounted in read-only mode to many hosts.","type":"boolean","default":false,"nullable":true},"readWriteMany":{"description":"Requesting claim that can be mounted in read/write mode to many hosts.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PvcVolumeMode":{"description":"The volume mode required by the claim. Choose Filesystem (default) or Block.","type":"string","enum":["Filesystem","Block"],"nullable":true},"PvcAddedAttrValues":{"description":"an optional array of key-values pairs that are written as annotations on the created PVC. the allowed attributes are determined according to the storage class configuration (see k8s-objects-tracker for further info).","type":"array","items":{"$ref":"#/components/schemas/PvcAddedAttrValue"}},"PvcAddedAttrValue":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":63,"pattern":"^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$"},"value":{"type":"string"}}},"PvcItems":{"description":"Set of pvc persistent volume claims to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/PvcInstance"},"nullable":true},"HostPathsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathInstance"},"instances":{"$ref":"#/components/schemas/HostPathItems"}},"nullable":true,"type":"object"},"HostPathInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/HostPath"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"HostPath":{"properties":{"path":{"description":"Local path within the controller to which the host volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","default":true,"nullable":true},"mountPath":{"description":"The path that the host volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagation"}},"nullable":true,"type":"object"},"HostPathMountPropagation":{"description":"Share this volumes mount with other containers. If set to HostToContainer, this volume mount will receive all subsequent mounts that are mounted to this volume or any of its subdirectories. In case of multiple hostPath entries, this field should have the same value for all of them.","type":"string","enum":["None","HostToContainer"],"nullable":true},"HostPathItems":{"description":"Set of host paths to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/HostPathInstance"},"nullable":true},"NfssDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsInstance"},"instances":{"$ref":"#/components/schemas/NfsItems"}},"nullable":true,"type":"object"},"NfsInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Nfs"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Nfs":{"properties":{"path":{"description":"Path that is exported by the NFS server (mandatory). For more information, see [NFS](https://kubernetes.io/docs/concepts/storage/volumes#nfs).","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the NFS export to be mounted with read-only permissions.","type":"boolean","default":true,"nullable":true},"server":{"description":"The hostname or IP address of the NFS server. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"The path that the NFS volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"NfsItems":{"description":"Set of nfs volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/NfsInstance"},"nullable":true},"GitsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/GitInstance"},"instances":{"$ref":"#/components/schemas/GitItems"}},"nullable":true,"type":"object"},"GitInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/GitCommon"},{"$ref":"#/components/schemas/GitPassword"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"GitCommon":{"properties":{"repository":{"description":"URL to a remote Git repository. The content of this repository will be mapped to the container running the workload. (mandatory)","type":"string","minLength":1,"nullable":true},"branch":{"description":"Specific branch to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"revision":{"description":"Specific revision to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the Git repository will be mapped (mandatory).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitPassword":{"properties":{"passwordSecret":{"description":"Secret containing the credentials of the repository (needed for non public repository which requires authentication).","type":"string","minLength":1,"nullable":true},"secretKeyOfUser":{"description":"The key to use for loading the user name from the secret. The default is `User`.","type":"string","minLength":1,"nullable":true},"secretKeyOfPassword":{"description":"The key to use for loading the password from the secret. The default is `Password`.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitItems":{"description":"Set of git repositories to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/GitInstance"},"nullable":true},"ConfigMapsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapInstance"},"instances":{"$ref":"#/components/schemas/ConfigMapField"}},"nullable":true,"type":"object"},"ConfigMapInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/ConfigMap"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"ConfigMap":{"properties":{"configMap":{"description":"The name of the ConfigMap resource. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"Local path within the workload to which the ConfigMap will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ConfigMapField":{"description":"Set of config map volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/ConfigMapInstance"},"nullable":true},"SecretsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretInstance2"},"instances":{"$ref":"#/components/schemas/SecretItems1"}},"nullable":true,"type":"object"},"SecretInstance2":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Secret5"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Secret5":{"allOf":[{"$ref":"#/components/schemas/SecretFieldsUpdatable"},{"$ref":"#/components/schemas/SecretFieldsNonUpdatable"}]},"SecretFieldsUpdatable":{"properties":{"mountPath":{"description":"Local path within the workload to which the Secret will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretFieldsNonUpdatable":{"properties":{"secret":{"description":"The name of the Secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretItems1":{"description":"Set of secret volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/SecretInstance2"},"nullable":true},"EmptyDirsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirInstance"},"instances":{"$ref":"#/components/schemas/EmptyDirItems"}},"nullable":true,"type":"object"},"EmptyDirInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/EmptyDir"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"EmptyDir":{"properties":{"path":{"description":"Local path within the workload to which the EmptyDir volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"medium":{"description":"The type of storage medium for the volume. Use \"Memory\" for memory-backed storage, or leave empty for disk-backed storage.","type":"string","minLength":1,"nullable":true},"sizeLimit":{"description":"The total amount of local storage or memory required for the emptyDir volume. Specify using Kubernetes quantity format (e.g., 1G, 500Mi).","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true}},"nullable":true,"type":"object"},"EmptyDirItems":{"description":"A list of emptyDir volumes to mount in the workload.","type":"array","items":{"$ref":"#/components/schemas/EmptyDirInstance"},"nullable":true},"NonInferenceStorageFieldsDefaults":{"properties":{"s3":{"$ref":"#/components/schemas/S3sDefaults"}},"nullable":true,"type":"object"},"S3sDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Instance"},"instances":{"$ref":"#/components/schemas/S3Items"}},"nullable":true,"type":"object"},"S3Instance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/S3Common"},{"$ref":"#/components/schemas/S3AccessKey"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"S3Common":{"properties":{"bucket":{"description":"The name of the bucket. (mandatory)","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the S3 bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"url":{"description":"The url of the S3 service provider. The default is the URL of the Amazon AWS S3 service.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3AccessKey":{"properties":{"accessKeySecret":{"description":"Name of the secret containing credentials of the S3 bucket. Used for private S3 buckets.","type":"string","minLength":1,"nullable":true},"secretKeyOfAccessKeyId":{"description":"The key to use for loading the access key id from the secret. The default is `AccessKeyId`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true},"secretKeyOfSecretKey":{"description":"The key to use for loading the secret key from the secret. The default is `SecretKey`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3Items":{"description":"Set of s3 buckets to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/S3Instance"},"nullable":true},"NonInferenceFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridable"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridable":{"description":"Container non Inference overrideable fields. It adds properties which are not allowed for Inference containers","properties":{"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.","type":"boolean","nullable":true},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TrainingPolicyRulesV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFieldsRules"},{"$ref":"#/components/schemas/NodeRelatedFlatFieldsRules"},{"$ref":"#/components/schemas/CommonItemizedFieldsRules"},{"$ref":"#/components/schemas/AdvancedFlatFieldsRules"},{"$ref":"#/components/schemas/ConnectivityRules"},{"$ref":"#/components/schemas/TrainingFieldsRules"},{"$ref":"#/components/schemas/SecurityRules"},{"$ref":"#/components/schemas/ComputeRules"},{"$ref":"#/components/schemas/StorageRules"},{"$ref":"#/components/schemas/NonInferenceFlatFieldsRules"}]},"CommonFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridableRules"},{"$ref":"#/components/schemas/ContainerNonOverridableRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPodRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPGRules"}],"nullable":true,"type":"object"},"ContainerOverridableRules":{"description":"Container related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"command":{"$ref":"#/components/schemas/StringRules"},"args":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StringRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/StringRulesOptions"}],"nullable":true,"type":"object"},"StringRulesCommon":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true}}},"SourceOfRule":{"description":"This field is used by the system along with effective rules, in order to specify the org unit from which this effective rule has been derived. It should be left empty when sending apply policy requests.","required":["scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"isFallback":{"description":"source of this rule is the fallback policy","type":"boolean"}},"nullable":true,"type":"object"},"StringRulesOptions":{"properties":{"options":{"description":"Set of options that the value of the field must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"},"nullable":true}}},"StringOption":{"description":"One of the values that the field can be assigned to, when options police is applied on the field.","required":["value"],"properties":{"value":{"description":"The value that the field should hold","type":"string"},"displayed":{"description":"Textual description of the value. to be used by user interface applications.","type":"string","nullable":true}}},"ContainerNonOverridableRules":{"properties":{"image":{"$ref":"#/components/schemas/StringRules"},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicyRules"},"workingDir":{"$ref":"#/components/schemas/StringRules"},"createHomeDir":{"$ref":"#/components/schemas/BooleanRules"},"probes":{"$ref":"#/components/schemas/ProbesRules"}},"nullable":true,"type":"object"},"ImagePullPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ImagePullPolicyOptions"}],"nullable":true,"type":"object"},"ImagePullPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ImagePullPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"BooleanRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ProbesRules":{"properties":{"readiness":{"$ref":"#/components/schemas/ProbeRules"}},"nullable":true,"type":"object"},"ProbeRules":{"properties":{"initialDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"periodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"timeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"successThreshold":{"$ref":"#/components/schemas/IntegerRules"},"failureThreshold":{"$ref":"#/components/schemas/IntegerRules"},"handler":{"$ref":"#/components/schemas/ProbeHandlerRules"}},"nullable":true,"type":"object"},"IntegerRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"DefaultFromRule":{"properties":{"field":{"description":"The default of this field is taken from another field, with optional factor. The specified field must belong to the same workload section (compute, security, etc). For itemized field, the value of the field will be taken from the same instance.","type":"string","nullable":true},"factor":{"description":"Multiple the value of the fromField by this factor to get the value for this field For example, if factor is 2 and defaultFrom field has value of 8, the calculated default will be determined to be 16.","type":"number","format":"double","nullable":true,"default":1}},"nullable":true,"type":"object"},"ProbeHandlerRules":{"properties":{"httpGet":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"port":{"$ref":"#/components/schemas/IntegerRules"},"host":{"$ref":"#/components/schemas/StringRules"},"scheme":{"$ref":"#/components/schemas/StringRules"}}}},"nullable":true,"type":"object"},"ResourcesFlatFieldsPerPodRules":{"description":"Resource related parameters.","properties":{"nodeType":{"$ref":"#/components/schemas/StringRules"},"nodeAffinityRequired":{"$ref":"#/components/schemas/ArbitraryRules"},"podAffinity":{"$ref":"#/components/schemas/PodAffinityRules"}},"nullable":true,"type":"object"},"ArbitraryRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this arbitrary object is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"PodAffinityRules":{"properties":{"type":{"$ref":"#/components/schemas/PodAffinityTypeRules"},"key":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PodAffinityTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PodAffinityTypeOptions"}],"nullable":true,"type":"object"},"PodAffinityTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PodAffinityType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"type":"object"},"ResourcesFlatFieldsPerPGRules":{"description":"Resource related parameters.","properties":{"category":{"$ref":"#/components/schemas/StringRules"},"priorityClass":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NodeRelatedFlatFieldsRules":{"description":"Node pools related parameters.","properties":{"nodePools":{"$ref":"#/components/schemas/ArrayRules"}},"nullable":true,"type":"object"},"ArrayRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this array is mandatory. Mandatory array must include at least one item. default to false.","type":"boolean","nullable":true},"options":{"description":"Set of options that the value of each item of the array must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"}},"canEdit":{"description":"Whether the value of the array, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"CommonItemizedFieldsRules":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldRules"},{"$ref":"#/components/schemas/AdvancedItemizedRules"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldRules":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"InstancesRules":{"properties":{"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ItemRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canAdd":{"description":"Whether it is permitted to add items. Default to true.","type":"boolean","nullable":true},"locked":{"description":"Set of keys for items that are \"locked\", i.e. cannot be removed or deleted.","type":"array","items":{"type":"string"}}},"nullable":true,"type":"object"},"AdvancedItemizedRules":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldRules"},{"$ref":"#/components/schemas/LabelsFieldRules"},{"$ref":"#/components/schemas/ImagePullSecretsFieldRules"},{"$ref":"#/components/schemas/TolerationsFieldRules"}],"type":"object","nullable":true},"AnnotationsFieldRules":{"properties":{"annotations":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"LabelsFieldRules":{"properties":{"labels":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"ImagePullSecretsFieldRules":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ImagePullSecretsRulesAttributes"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRulesAttributes":{"description":"Rules for the attributes of imagePullSecrets","properties":{"name":{"$ref":"#/components/schemas/StringRules"},"userCredentials":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationsFieldRules":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsRules"}},"nullable":true,"type":"object"},"TolerationsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/TolerationRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"TolerationRules":{"description":"Toleration details.","properties":{"operator":{"$ref":"#/components/schemas/TolerationOperatorRules"},"key":{"$ref":"#/components/schemas/StringRules"},"value":{"$ref":"#/components/schemas/StringRules"},"effect":{"$ref":"#/components/schemas/TolerationEffectRules"},"seconds":{"$ref":"#/components/schemas/IntegerRules"},"exclude":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationOperatorRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationOperatorOptions"}],"nullable":true,"type":"object"},"TolerationOperatorOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationOperator"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"TolerationEffectRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationEffectOptions"}],"nullable":true,"type":"object"},"TolerationEffectOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationEffect"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"AdvancedFlatFieldsRules":{"properties":{"terminateAfterPreemption":{"$ref":"#/components/schemas/BooleanRules"},"autoDeletionTimeAfterCompletionSeconds":{"$ref":"#/components/schemas/IntegerRules"},"terminationGracePeriodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"backoffLimit":{"$ref":"#/components/schemas/IntegerRules"},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicyRule"}},"nullable":true,"type":"object"},"RestartPolicyRule":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/RestartPolicyOptions"}],"nullable":true,"type":"object"},"RestartPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for restartPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/RestartPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ConnectivityRules":{"properties":{"ports":{"$ref":"#/components/schemas/PortsRules"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsRules"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsRules"}},"nullable":true,"type":"object"},"PortsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PortRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PortRules":{"description":"Rules for port attributes","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"serviceType":{"$ref":"#/components/schemas/PortServiceTypeRules"},"customExternalPort":{"$ref":"#/components/schemas/BooleanRules"},"external":{"$ref":"#/components/schemas/IntegerRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PortServiceTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PortServiceTypeOptions"}],"nullable":true,"type":"object"},"PortServiceTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PortServiceType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ExposedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExposedUrlRules":{"description":"Rules for the attributed of exposedUrls","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"customUrl":{"$ref":"#/components/schemas/BooleanRules"},"url":{"$ref":"#/components/schemas/StringRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"RelatedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"RelatedUrlRules":{"description":"Rules for the attributes of relatedUrls","properties":{"url":{"$ref":"#/components/schemas/StringRules"},"type":{"$ref":"#/components/schemas/StringRules"},"name":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"TrainingFieldsRules":{"properties":{"completions":{"$ref":"#/components/schemas/IntegerRules"},"parallelism":{"$ref":"#/components/schemas/IntegerRules"}},"nullable":true,"type":"object"},"SecurityRules":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFieldsRules"}},"nullable":true,"type":"object"},"SecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFieldsRules"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFieldsRules"}],"nullable":true,"type":"object"},"CommonSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridableRules"},{"$ref":"#/components/schemas/CommonSecurityOverridableRules"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridableRules":{"properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSourceRules"},"capabilities":{"$ref":"#/components/schemas/ArrayRules"},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileTypeRules"},"runAsNonRoot":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyRootFilesystem":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"UidGidSourceRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/UidGidSourceOptions"}],"nullable":true,"type":"object"},"UidGidSourceOptions":{"properties":{"options":{"description":"Limit the permitted values for uidGidSource to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/UidGidSource"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"SeccompProfileTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/SeccompProfileTypeOptions"}],"nullable":true,"type":"object"},"SeccompProfileTypeOptions":{"properties":{"options":{"description":"Limit the permitted values for secompProfileType to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/SeccompProfileType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"CommonSecurityOverridableRules":{"description":"Security related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"runAsUid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"runAsGid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"supplementalGroups":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"IntegerRulesOptional":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridableRules"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridableRules":{"properties":{"allowPrivilegeEscalation":{"$ref":"#/components/schemas/BooleanRules"},"hostIpc":{"$ref":"#/components/schemas/BooleanRules"},"hostNetwork":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ComputeRules":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsRules"}},"nullable":true,"type":"object"},"ComputeFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFieldsRules"},{"$ref":"#/components/schemas/ComputeItemizedFieldsRules"}],"nullable":true,"type":"object"},"ComputeFlatFieldsRules":{"properties":{"cpuCoreRequest":{"$ref":"#/components/schemas/NumberRules"},"cpuCoreLimit":{"$ref":"#/components/schemas/NumberRules"},"cpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"cpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"},"largeShmRequest":{"$ref":"#/components/schemas/BooleanRules"},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestRules"},"migProfile":{"$ref":"#/components/schemas/MigProfileRules","deprecated":true},"gpuDevicesRequest":{"$ref":"#/components/schemas/IntegerRules"},"gpuPortionRequest":{"$ref":"#/components/schemas/NumberRules"},"gpuPortionLimit":{"$ref":"#/components/schemas/NumberRules"},"gpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"gpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"}},"nullable":true,"type":"object"},"NumberRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"number","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"number","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=3, step=0.25 implies that the values the field can hold are 2, 2.25, 2.5 and 3.","type":"number","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"QuantityRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"max":{"description":"The maximum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"GpuRequestRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/GpuRequestOptions"}],"nullable":true,"type":"object"},"GpuRequestOptions":{"properties":{"options":{"description":"Limit the permitted values for gpuRequest to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/GpuRequestType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"MigProfileRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/MigProfileOptions"}],"nullable":true,"type":"object"},"MigProfileOptions":{"properties":{"options":{"description":"Limit the permitted values for migProfile to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/MigProfile"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object","deprecated":true},"ComputeItemizedFieldsRules":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesRules"}},"nullable":true,"type":"object"},"ExtendedResourcesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResourceRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExtendedResourceRules":{"description":"Rules for the attributes of extendedResources","properties":{"quantity":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StorageRules":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsRules"}},"nullable":true,"type":"object"},"StorageFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsRules"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsRules"}],"nullable":true,"type":"object"},"CommonStorageFieldsRules":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesRules"},"pvc":{"$ref":"#/components/schemas/PvcsRules"},"hostPath":{"$ref":"#/components/schemas/HostPathsRules"},"nfs":{"$ref":"#/components/schemas/NfssRules"},"git":{"$ref":"#/components/schemas/GitsRules"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsRules"},"secretVolume":{"$ref":"#/components/schemas/SecretsRules"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsRules"}},"nullable":true,"type":"object"},"DataVolumesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"DataVolumeRules":{"properties":{"id":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PvcsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PvcRules":{"properties":{"claimName":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"claimInfo":{"$ref":"#/components/schemas/ClaimInfoRules"}},"nullable":true,"type":"object"},"ClaimInfoRules":{"properties":{"size":{"$ref":"#/components/schemas/StringRules"},"storageClass":{"$ref":"#/components/schemas/StringRules"},"accessModes":{"$ref":"#/components/schemas/PvcAccessModesRules"}},"nullable":true,"type":"object"},"PvcAccessModesRules":{"description":"Rules for access mode(s) for a newly created PVC.","properties":{"readWriteOnce":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyMany":{"$ref":"#/components/schemas/BooleanRules"},"readWriteMany":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"HostPathsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"HostPathRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagationRules"}},"nullable":true,"type":"object"},"HostPathMountPropagationRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/HostPathMountPropagationOptions"}],"nullable":true,"type":"object"},"HostPathMountPropagationOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/HostPathMountPropagation"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}}},"NfssRules":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"NfsRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"server":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"GitsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/GitRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"GitRules":{"properties":{"repository":{"$ref":"#/components/schemas/StringRules"},"branch":{"$ref":"#/components/schemas/StringRules"},"revision":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ConfigMapsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ConfigMapRules":{"properties":{"configMap":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"subPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"SecretRules":{"properties":{"secret":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"EmptyDirsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"EmptyDirRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"medium":{"$ref":"#/components/schemas/StringRules"},"sizeLimit":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceStorageFieldsRules":{"properties":{"s3":{"$ref":"#/components/schemas/S3sRules"}},"nullable":true,"type":"object"},"S3sRules":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Rules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"S3Rules":{"properties":{"bucket":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"url":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridableRules"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridableRules":{"properties":{"tty":{"$ref":"#/components/schemas/BooleanRules"},"stdin":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ImposedAssets":{"description":"a list of datasource assets to import into the policy. these datasources will be included in any workload that will be created in the scope of the policy.","type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"Timestamp":{"description":"The time at which an event occurred. e.g. the time an effective policy has been updated","type":"string","minLength":1,"format":"date-time"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404NotFound":{"description":"The specified resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy/trainings":{"get":{"summary":"Get a training policy.","description":"Retrieve the details of an training policy for a given organizational unit.","operationId":"get_training_policy_v2","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/PolicyScope"},{"$ref":"#/components/parameters/FilterByDepartment"},{"$ref":"#/components/parameters/FilterByProject"},{"$ref":"#/components/parameters/FilterByCluster"}],"responses":{"200":{"description":"Request completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingPolicyV2"}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"404":{"$ref":"#/components/responses/404NotFound"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Overwrite a training policy.

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

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"ValidateOnly":{"name":"validateOnly","in":"query","required":false,"description":"Validate the given policy payload without applying it","schema":{"type":"boolean"}}},"schemas":{"TrainingPolicyOverwriteRequestV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyCreationFields"},"policy":{"$ref":"#/components/schemas/TrainingPolicyDefaultsAndRulesV2"}},"type":"object"},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"TrainingPolicyDefaultsAndRulesV2":{"properties":{"defaults":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFields"},{"$ref":"#/components/schemas/NodeRelatedFlatFields"},{"$ref":"#/components/schemas/CommonItemizedDefaults"},{"$ref":"#/components/schemas/AdvancedFlatFields"},{"$ref":"#/components/schemas/ConnectivityDefaults"},{"$ref":"#/components/schemas/TrainingFields"},{"$ref":"#/components/schemas/Security"},{"$ref":"#/components/schemas/ComputeDefaults"},{"$ref":"#/components/schemas/StorageDefaults"},{"$ref":"#/components/schemas/NonInferenceFlatFields"}],"nullable":true,"type":"object"},"rules":{"allOf":[{"$ref":"#/components/schemas/TrainingPolicyRulesV2"}],"nullable":true,"type":"object"},"imposedAssets":{"$ref":"#/components/schemas/ImposedAssets"},"status":{"$ref":"#/components/schemas/PolicyValidationStatus"}},"nullable":true,"type":"object"},"CommonFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridable"},{"$ref":"#/components/schemas/ContainerNonOverridable"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPod"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPG"}],"nullable":true,"type":"object"},"ContainerOverridable":{"description":"Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"command":{"description":"A command to the server as the entry point of the container running the workload.","type":"string","minLength":1,"nullable":true},"args":{"description":"Arguments to the command that the container running the workload executes.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ContainerNonOverridable":{"description":"Container non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"image":{"description":"Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a workload.","type":"string","minLength":1,"nullable":true},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicy"},"workingDir":{"description":"Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.","type":"string","minLength":1,"nullable":true},"createHomeDir":{"description":"When set to `true`, creates a home directory for the container.","type":"boolean","nullable":true},"probes":{"$ref":"#/components/schemas/Probes"}},"nullable":true,"type":"object"},"ImagePullPolicy":{"description":"Image pull policy. Defaults to `Always` if `:latest` tag is specified, otherwise it is `IfNotPresent`.","type":"string","minLength":1,"enum":["Always","Never","IfNotPresent"],"nullable":true},"Probes":{"description":"Probes are used to determine if the container is healthy and ready to accept traffic.","type":"object","properties":{"readiness":{"$ref":"#/components/schemas/Probe"}},"nullable":true},"Probe":{"type":"object","properties":{"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness or readiness probes are initiated.","type":"integer","format":"int32","minimum":0,"nullable":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe.","type":"integer","format":"int32","minimum":1,"nullable":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out.","type":"integer","format":"int32","minimum":1,"nullable":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed.","type":"integer","format":"int32","minimum":1,"nullable":true},"failureThreshold":{"description":"When a probe fails, the number of times to try before giving up.","type":"integer","format":"int32","minimum":1,"nullable":true},"handler":{"$ref":"#/components/schemas/ProbeHandler"}},"nullable":true},"ProbeHandler":{"description":"The action taken to determine the health of the container. (mandatory)","type":"object","properties":{"httpGet":{"description":"An action based on HTTP Get requests.","type":"object","properties":{"path":{"description":"Path to access on the HTTP server, defaults to /.","type":"string","pattern":"^(\\x2F[a-zA-Z0-9\\-_.\\x2F]*)?$","nullable":true},"port":{"description":"Number of the port to access on the container.","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"host":{"description":"Host name to connect to, defaults to the pod IP.","type":"string","format":"hostname","nullable":true},"scheme":{"$ref":"#/components/schemas/ProbeHandlerScheme"}}}},"nullable":true},"ProbeHandlerScheme":{"description":"Scheme to use for connecting to the host, defaults to HTTP.","type":"string","enum":["HTTP","HTTPS"],"nullable":true},"ResourcesFlatFieldsPerPod":{"description":"Resource parameters.","properties":{"nodeType":{"description":"Nodes (machines), or a group of nodes on which the workload will run. To use this feature, your Administrator will need to label nodes. For more information, see [Group Nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/researcher-setup/limit-to-node-group). When using this flag with with Project-based affinity, it refines the list of allowable node groups set in the Project. For more information, see [Projects](https://docshub.run.ai/guides/platform-management/aiinitiatives/organization/projects).","type":"string","minLength":1,"nullable":true},"nodeAffinityRequired":{"$ref":"#/components/schemas/NodeAffinityRequired"},"podAffinity":{"$ref":"#/components/schemas/PodAffinity"}},"nullable":true,"type":"object"},"NodeAffinityRequired":{"type":"object","description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","properties":{"nodeSelectorTerms":{"description":"A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/components/schemas/NodeSelectorTerm"}}},"nullable":true},"NodeSelectorTerm":{"type":"object","description":"A null or empty node selector term matches no objects. The requirements of them are ANDed.","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"$ref":"#/components/schemas/MatchExpression"}}},"nullable":true},"MatchExpression":{"type":"object","description":"A selector that contains values, a key, and an operator that relates the key and values.","properties":{"key":{"description":"The label key that the selector applies to (mandatory).","type":"string"},"operator":{"$ref":"#/components/schemas/MatchExpressionOperator"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.","type":"array","items":{"type":"string"}}},"required":["key","operator"],"nullable":true},"MatchExpressionOperator":{"description":"Represents a key's relationship to a set of values (mandatory).","type":"string","enum":["In","NotIn","Exists","DoesNotExist","Gt","Lt"]},"PodAffinity":{"description":"Pod affinity scheduling rules (e.g. co-locate this workload in the same node, zone, etc. as some other workloads).","type":"object","properties":{"type":{"$ref":"#/components/schemas/PodAffinityType"},"key":{"description":"The label key to use. (mandatory)","type":"string","nullable":true}},"nullable":true},"PodAffinityType":{"description":"The affinity type, required or preferred. (mandatory)","type":"string","enum":["Required","Preferred"],"nullable":true},"ResourcesFlatFieldsPerPG":{"description":"Resource parameters.","properties":{"category":{"$ref":"#/components/schemas/Category"},"priorityClass":{"$ref":"#/components/schemas/PriorityClass"}},"nullable":true,"type":"object"},"Category":{"description":"Specify the workload category assigned to the workload. Categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.","type":"string","nullable":true},"PriorityClass":{"description":"Specifies the priority class for the workload.  Valid values are: very-low, low, medium-low, medium, medium-high, high, very-high.  You can use this parameter to adjust the workload's scheduling behavior.  Each workload type has a default priority.  To view the default priority for each workload type, use the GET /workload-types endpoint.","type":"string","nullable":true},"NodeRelatedFlatFields":{"description":"Node related parameters.","properties":{"nodePools":{"description":"A prioritized list of node pools for the scheduler to run the workload on. The scheduler will always try to use the first node pool before moving to the next one if the first is not available.","type":"array","items":{"type":"string"},"nullable":true}},"nullable":true,"type":"object"},"CommonItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldDefaults"},{"$ref":"#/components/schemas/AdvancedItemizedDefaults"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldDefaults":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/EnvironmentVariablesDefaults"}},"nullable":true,"type":"object"},"EnvironmentVariablesDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/EnvironmentVariables"}},"nullable":true,"type":"object"},"EnvironmentVariables":{"description":"Set of environment variables to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"nullable":true},"EnvironmentVariable":{"description":"Details of an environment variable which is populated into the container.","properties":{"name":{"description":"The name of the environment variable. (mandatory)","type":"string","minLength":1,"nullable":true},"value":{"description":"The value of the environment variable. (mutually exclusive with secret, credential, configMap and podFieldRef)","type":"string","nullable":true},"secret":{"$ref":"#/components/schemas/EnvironmentVariableSecret"},"configMap":{"$ref":"#/components/schemas/EnvironmentVariableConfigMap"},"podFieldRef":{"$ref":"#/components/schemas/EnvironmentVariablePodFieldReference"},"exclude":{"description":"Use 'true' in case the environment variable is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true},"description":{"description":"Description of the environment variable.","type":"string","nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableSecret":{"description":"Details of the secret and key use to populate the environment variable","properties":{"name":{"description":"The name of the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableConfigMap":{"description":"Details of the configMap and key use to populate the environment variable","properties":{"name":{"description":"The name of the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariablePodFieldReference":{"description":"Details of the field-reference and key use to populate the environment variable","properties":{"path":{"description":"The field path resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"AdvancedItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldDefaults"},{"$ref":"#/components/schemas/LabelsFieldDefaults"},{"$ref":"#/components/schemas/ImagePullSecretsFieldDefaults"},{"$ref":"#/components/schemas/TolerationsFieldDefaults"}],"type":"object","nullable":true},"AnnotationsFieldDefaults":{"properties":{"annotations":{"$ref":"#/components/schemas/AnnotationsDefaults"}},"nullable":true,"type":"object"},"AnnotationsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Annotations"}},"nullable":true,"type":"object"},"Annotations":{"description":"Set of annotations to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Annotation"},"nullable":true},"Annotation":{"description":"Annotation details to be populated into the container.","properties":{"name":{"description":"The name of the annotation (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the annotation.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the annotation is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"LabelsFieldDefaults":{"properties":{"labels":{"$ref":"#/components/schemas/LabelsDefaults"}},"nullable":true,"type":"object"},"LabelsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Labels"}},"nullable":true,"type":"object"},"Labels":{"description":"Set of labels to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Label"},"nullable":true},"Label":{"description":"Label details to be populated into the container.","properties":{"name":{"description":"The name of the label (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the label.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ImagePullSecretsFieldDefaults":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsDefaults"}},"nullable":true,"type":"object"},"ImagePullSecretsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/ImagePullSecrets"}},"nullable":true,"type":"object"},"ImagePullSecrets":{"description":"A list of references to Kubernetes secrets in the same namespace used for pulling container images.","type":"array","items":{"$ref":"#/components/schemas/ImagePullSecret"},"nullable":true},"ImagePullSecret":{"description":"A reference to a secret in the same namespace used to pull container images.","properties":{"name":{"type":"string","description":"The name of the Kubernetes secret containing the image pull credentials."},"userCredential":{"type":"boolean","description":"Indicates whether the secret is a user credential. Set to true if the secret was created by the user and is only accessible by them.","nullable":true},"exclude":{"description":"Use 'true' in case the secret is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"TolerationsFieldDefaults":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsDefaults"}},"nullable":true,"type":"object"},"TolerationsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Toleration"},"instances":{"$ref":"#/components/schemas/Tolerations"}},"nullable":true,"type":"object"},"Toleration":{"description":"Toleration details.","properties":{"name":{"description":"The name of the toleration.","type":"string","minLength":1,"nullable":true},"operator":{"$ref":"#/components/schemas/TolerationOperator"},"key":{"description":"The taint key that the toleration applies to. (mandatory)","type":"string","nullable":true},"value":{"description":"The taint value the toleration matches to. Mandatory if operator is Exists, forbidden otherwise.","type":"string","nullable":true},"effect":{"$ref":"#/components/schemas/TolerationEffect"},"seconds":{"description":"The period of time the toleration tolerates the taint. Valid only if effect is NoExecute. taint.","type":"integer","minimum":1,"nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TolerationOperator":{"description":"A key's relationship to the value. Equal uses key and value. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. (mandatory)","type":"string","enum":["Equal","Exists"],"nullable":true},"TolerationEffect":{"description":"The taint effect to match. (mandatory)","type":"string","enum":["NoSchedule","NoExecute","PreferNoSchedule","Any"],"nullable":true},"Tolerations":{"description":"Set of tolerations to apply to the workload.","type":"array","items":{"$ref":"#/components/schemas/Toleration"},"nullable":true},"AdvancedFlatFields":{"properties":{"terminateAfterPreemption":{"description":"Indicates if the job should be terminated by the system after it has been preempted.","type":"boolean","nullable":true},"autoDeletionTimeAfterCompletionSeconds":{"description":"Specifies the duration after which a finished workload (completed or failed) will be automatically deleted. The default is 30 days.","format":"int64","type":"integer","nullable":true},"terminationGracePeriodSeconds":{"description":"Duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down).","format":"int64","type":"integer","minimum":0,"nullable":true},"backoffLimit":{"description":"Specifies the number of retries before marking a workload as failed (not applicable to Inference workloads). The default value is 6.","format":"int64","type":"integer","nullable":true},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicy"}},"nullable":true,"type":"object"},"RestartPolicy":{"description":"Specify the restart policy of the workload pods. Default is empty, which is determine by the framework default","type":"string","minLength":1,"enum":["Always","Never","OnFailure"],"nullable":true},"ConnectivityDefaults":{"properties":{"ports":{"$ref":"#/components/schemas/PortsDefaults"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsDefaults"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsDefaults"}},"nullable":true,"type":"object"},"PortsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Port"},"instances":{"$ref":"#/components/schemas/Ports"}},"nullable":true,"type":"object"},"Port":{"description":"A port for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"serviceType":{"$ref":"#/components/schemas/PortServiceType"},"external":{"description":"The external port which allows a connection to the container port. If not specified, the port will be auto-generated by the system..","type":"integer","format":"int32","nullable":true},"toolType":{"description":"The tool type that runs on this port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this port.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PortServiceType":{"description":"The service type of the port (mandatory).","type":"string","enum":["LoadBalancer","NodePort","ClusterIP"],"nullable":true},"Ports":{"description":"Set of container ports that the workload exposes.","type":"array","items":{"$ref":"#/components/schemas/Port"},"nullable":true},"ExposedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrl"},"instances":{"$ref":"#/components/schemas/ExposedUrls"}},"nullable":true,"type":"object"},"ExposedUrl":{"description":"A URL for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","nullable":true},"url":{"description":"The URL for connecting to the container port. If not specified, the URL will be auto-generated by the system..","type":"string","nullable":true},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"toolType":{"description":"The tool type that runs on this container port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this url.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the instance is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExposedUrls":{"description":"Set of container ports that the workload exposes via URLs.","type":"array","items":{"$ref":"#/components/schemas/ExposedUrl"},"nullable":true},"RelatedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrl"},"instances":{"$ref":"#/components/schemas/RelatedUrls"}},"nullable":true,"type":"object"},"RelatedUrl":{"description":"A URL that is related to the workload. For example, a URL to an external server providing statistics or logging about the workload.","properties":{"url":{"description":"The URL for connecting an external service related to the workload. (mandatory)","type":"string","nullable":true},"type":{"description":"The type of service that the url provides. For example, wandb (Weights & Biases). (mandatory)","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"RelatedUrls":{"description":"Set of URLs that are related to the workload.","type":"array","items":{"$ref":"#/components/schemas/RelatedUrl"},"nullable":true},"TrainingFields":{"allOf":[{"$ref":"#/components/schemas/CompletionsField"},{"$ref":"#/components/schemas/ParallelismField"}],"nullable":true,"type":"object"},"CompletionsField":{"properties":{"completions":{"description":"Used with Hyperparameter Optimization. Specifies the number of successful pods the job should reach to be completed. The Job will be marked as successful once the specified amount of pods has been reached (applicable to standard training only).","type":"integer","format":"int32","nullable":true}},"nullable":true,"type":"object"},"ParallelismField":{"properties":{"parallelism":{"description":"Used with Hyperparameter Optimization. Specifies the maximum number of pods the workload should run at any given time (applicable to standard training only).","type":"integer","format":"int32","nullable":true}},"nullable":true,"type":"object"},"Security":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFields"}},"nullable":true,"type":"object"},"SecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFields"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFields"}],"nullable":true,"type":"object"},"CommonSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridable"},{"$ref":"#/components/schemas/CommonSecurityOverridable"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridable":{"description":"Security non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSource"},"capabilities":{"description":"Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.","type":"array","items":{"$ref":"#/components/schemas/Capability"},"nullable":true},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileType"},"runAsNonRoot":{"description":"Force the container to run as a non-root user.","type":"boolean","nullable":true},"readOnlyRootFilesystem":{"description":"If true, mounts the container's root filesystem as read-only.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"UidGidSource":{"description":"Indicate the way to determine the user and group ids of the container. The options are a. `fromTheImage` - user and group ids are determined by the docker image that the container runs. this is the default option. b. `custom` - user and group ids can be specified in the environment asset and/or the workload creation request. c. `idpToken` - user and group ids are determined according to the identity provider (idp) access token. This option is intended for internal use of the environment UI form. For more information, see [User Identity](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/runai-setup/config/non-root-containers/).","type":"string","enum":["fromTheImage","fromIdpToken","custom"],"nullable":true},"Capability":{"type":"string","enum":["AUDIT_CONTROL","AUDIT_READ","AUDIT_WRITE","BLOCK_SUSPEND","CHOWN","DAC_OVERRIDE","DAC_READ_SEARCH","FOWNER","FSETID","IPC_LOCK","IPC_OWNER","KILL","LEASE","LINUX_IMMUTABLE","MAC_ADMIN","MAC_OVERRIDE","MKNOD","NET_ADMIN","NET_BIND_SERVICE","NET_BROADCAST","NET_RAW","SETGID","SETFCAP","SETPCAP","SETUID","SYS_ADMIN","SYS_BOOT","SYS_CHROOT","SYS_MODULE","SYS_NICE","SYS_PACCT","SYS_PTRACE","SYS_RAWIO","SYS_RESOURCE","SYS_TIME","SYS_TTY_CONFIG","SYSLOG","WAKE_ALARM"]},"SeccompProfileType":{"description":"Indicates which kind of seccomp profile will be applied to the container. The options are a. `RuntimeDefault` - the container runtime default profile should be used. b. `Unconfined` - no profile should be applied. c. `Localhost` is not yet supported by Run:ai.","type":"string","enum":["RuntimeDefault","Unconfined","Localhost"],"nullable":true},"CommonSecurityOverridable":{"description":"Security overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"runAsUid":{"description":"The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsUid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"runAsGid":{"description":"The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsGid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"supplementalGroups":{"description":"Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled. Using an empty string implies reverting the supplementary groups of the image.","type":"string","nullable":true}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridable"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridable":{"description":"Security related fields. When used in assets context, those are environment asset fields that cannot be override in the submit workload request.","properties":{"allowPrivilegeEscalation":{"description":"Allow the container running the workload and all launched processes to gain additional privileges after the workload starts. For more information consult the User Identity in Container guide at https://docs.run.ai/admin/runai-setup/config/non-root-containers/","type":"boolean","nullable":true},"hostIpc":{"description":"Whether to enable host IPC. Defaults to false.","type":"boolean","nullable":true},"hostNetwork":{"description":"Whether to enable host networking. Default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ComputeDefaults":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsDefaults"}},"nullable":true,"type":"object"},"ComputeFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFields"},{"$ref":"#/components/schemas/ComputeItemizedFieldsDefaults"}],"nullable":true,"type":"object"},"ComputeFlatFields":{"properties":{"gpuDevicesRequest":{"description":"Requested number of GPU devices. Currently if more than one device is requested, it is not possible to provide values for gpuMemory, gpuPortion or migProfile [deprecated].","type":"integer","format":"int32","nullable":true,"minimum":0},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestType"},"gpuPortionRequest":{"description":"Required if and only if gpuRequestType is portion. States the portion of the GPU to allocate for the created workload, per GPU device, between 0 and 1. The default is no allocated GPUs.","type":"number","format":"double","nullable":true,"minimum":0},"gpuPortionLimit":{"description":"Limitations on the portion consumed by the workload, per GPU device. The system guarantees The gpuPotionLimit must be no less than the gpuPortionRequest.","type":"number","format":"double","nullable":true,"minimum":0},"gpuMemoryRequest":{"description":"Required if and only if gpuRequestType is memory. States the GPU memory to allocate for the created workload, per GPU device. Note that the workload will not be scheduled unless the system can guarantee this amount of GPU memory to the workload.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"gpuMemoryLimit":{"description":"Limitation on the memory consumed by the workload, per GPU device. The system guarantees The gpuMemoryLimit must be no less than gpuMemoryRequest.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"migProfile":{"$ref":"#/components/schemas/MigProfile","depracted":true},"cpuCoreRequest":{"description":"CPU units to allocate for the created workload (0.5, 1, .etc). The workload will receive at least this amount of CPU. Note that the workload will not be scheduled unless the system can guarantee this amount of CPUs to the workload.","format":"double","type":"number","nullable":true,"minimum":0},"cpuCoreLimit":{"description":"Limitations on the number of CPUs consumed by the workload (0.5, 1, .etc). The system guarantees that this workload will not be able to consume more than this amount of CPUs.","format":"double","type":"number","nullable":true,"minimum":0},"cpuMemoryRequest":{"description":"The amount of CPU memory to allocate for this workload (1G, 20M, .etc). The workload will receive at least this amount of memory. Note that the workload will not be scheduled unless the system can guarantee this amount of memory to the workload","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"cpuMemoryLimit":{"description":"Limitations on the CPU memory to allocate for this workload (1G, 20M, .etc). The system guarantees that this workload will not be able to consume more than this amount of memory. The workload will receive an error when trying to allocate more memory than this limit.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"largeShmRequest":{"description":"A large /dev/shm device to mount into a container running the created workload. An shm is a shared file system mounted on RAM.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"GpuRequestType":{"description":"Sets the unit type for GPU resources requests. Stated in terms of portion, memory or  mig profile [deprecated]. Sets the unit type for other GPU request fields. If `gpuDevicesRequest > 1`, only `portion` is supported. If `gpuDeviceRequest = 1`, the request type can be stated as `portion`, `memory` or `migProfile` [deprecated].","type":"string","minLength":1,"enum":["portion","memory","migProfile"],"nullable":true},"MigProfile":{"description":"Required only if `gpuRequestType` is `migProfile`. This states the memory profile to be used for the workload running NVIDIA Multi-Instance GPU (MIG) technology.","type":"string","deprecated":true,"minLength":1,"enum":["1g.5gb","1g.10gb","2g.10gb","2g.20gb","3g.20gb","3g.40gb","4g.20gb","4g.40gb","7g.40gb","7g.80gb"],"nullable":true},"ComputeItemizedFieldsDefaults":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesDefaults"}},"nullable":true,"type":"object"},"ExtendedResourcesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResource"},"instances":{"$ref":"#/components/schemas/ExtendedResources"}},"nullable":true,"type":"object"},"ExtendedResource":{"description":"Quantity of an extended resource.","properties":{"resource":{"description":"The name of the extended resource (mandatory)","type":"string","minLength":1,"nullable":true},"quantity":{"description":"The requested quantity for the resource.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the extended resource is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExtendedResources":{"description":"Extended resources and their quantity.","type":"array","items":{"$ref":"#/components/schemas/ExtendedResource"},"nullable":true},"StorageDefaults":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsDefaults"}},"nullable":true,"type":"object"},"StorageFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsDefaults"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsDefaults"}],"nullable":true,"type":"object"},"CommonStorageFieldsDefaults":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesDefaults"},"pvc":{"$ref":"#/components/schemas/PvcsDefaults"},"hostPath":{"$ref":"#/components/schemas/HostPathsDefaults"},"nfs":{"$ref":"#/components/schemas/NfssDefaults"},"git":{"$ref":"#/components/schemas/GitsDefaults"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsDefaults"},"secretVolume":{"$ref":"#/components/schemas/SecretsDefaults"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsDefaults"}},"nullable":true,"type":"object"},"DataVolumesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeInstance"},"instances":{"$ref":"#/components/schemas/DataVolumeItems"}},"nullable":true,"type":"object"},"DataVolumeInstance":{"allOf":[{"$ref":"#/components/schemas/DataVolume"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"DataVolume":{"properties":{"id":{"description":"The unique identifier of the data volume. (mandatory)","type":"string","format":"uuid","nullable":true},"mountPath":{"description":"The path where the data volume will be mounted. (mandatory)","type":"string","nullable":true}},"nullable":true,"type":"object"},"ExcludeField":{"properties":{"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"type":"object","nullable":true},"DataVolumeItems":{"description":"Set of data volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/DataVolumeInstance"},"nullable":true},"PvcsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcInstance"},"instances":{"$ref":"#/components/schemas/PvcItems"}},"nullable":true,"type":"object"},"PvcInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Pvc"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"StorageInstanceName":{"properties":{"name":{"description":"unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"Pvc":{"allOf":[{"$ref":"#/components/schemas/PvcFieldsUpdatable"},{"$ref":"#/components/schemas/PvcFieldsNonUpdatable"}]},"PvcFieldsUpdatable":{"properties":{"path":{"description":"Local path within the workload to which the PVC bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"PvcFieldsNonUpdatable":{"properties":{"existingPvc":{"description":"Verify existing PVC. PVC is assumed to exist when set to `true`. If set to `false`, the PVC will be created, if it does not exist.","type":"boolean","default":false,"nullable":true},"claimName":{"description":"Name for the PVC. Allow referencing it across workloads. If not provided, a name based on the workload name and scope will be auto-generated.","type":"string","minLength":1,"maxLength":63,"nullable":true},"readOnly":{"description":"Permit only read access to PVC.","type":"boolean","default":false,"nullable":true},"ephemeral":{"description":"Use `true` to set PVC to ephemeral. If set to `true`, the PVC will be deleted when the workload is stopped. Not supported for inference workloads.","type":"boolean","default":false,"nullable":true},"claimInfo":{"$ref":"#/components/schemas/ClaimInfo"},"dataSharing":{"description":"use `true` to share the PVC data to all projects under the selected scope.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"ClaimInfo":{"description":"Claim information for the newly created PVC. The information should not be provided when attempting to use existing PVC.","properties":{"size":{"$ref":"#/components/schemas/PvcClaimSize"},"storageClass":{"description":"Storage class name to associate with the PVC. This parameter may be omitted if there is a single storage class in the system, or you are using the default storage class. For more information, see [Storage class](https://kubernetes.io/docs/concepts/storage/storage-classes).","type":"string","minLength":1,"nullable":true},"accessModes":{"$ref":"#/components/schemas/PvcAccessModes"},"volumeMode":{"$ref":"#/components/schemas/PvcVolumeMode"},"addedAttrValues":{"$ref":"#/components/schemas/PvcAddedAttrValues"}},"nullable":true,"type":"object"},"PvcClaimSize":{"description":"Requested size for the PVC. Mandatory when existingPvc is false. Recommended sizes: TB/GB/MB/TIB/GIB/MIB","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"PvcAccessModes":{"description":"Requested access mode(s) for the newly created PVC.","properties":{"readWriteOnce":{"description":"Requesting claim that can be mounted in read/write mode to exactly one host. This is the default access mode.","type":"boolean","default":true,"nullable":true},"readOnlyMany":{"description":"Requesting claim that can be mounted in read-only mode to many hosts.","type":"boolean","default":false,"nullable":true},"readWriteMany":{"description":"Requesting claim that can be mounted in read/write mode to many hosts.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PvcVolumeMode":{"description":"The volume mode required by the claim. Choose Filesystem (default) or Block.","type":"string","enum":["Filesystem","Block"],"nullable":true},"PvcAddedAttrValues":{"description":"an optional array of key-values pairs that are written as annotations on the created PVC. the allowed attributes are determined according to the storage class configuration (see k8s-objects-tracker for further info).","type":"array","items":{"$ref":"#/components/schemas/PvcAddedAttrValue"}},"PvcAddedAttrValue":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":63,"pattern":"^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$"},"value":{"type":"string"}}},"PvcItems":{"description":"Set of pvc persistent volume claims to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/PvcInstance"},"nullable":true},"HostPathsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathInstance"},"instances":{"$ref":"#/components/schemas/HostPathItems"}},"nullable":true,"type":"object"},"HostPathInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/HostPath"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"HostPath":{"properties":{"path":{"description":"Local path within the controller to which the host volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","default":true,"nullable":true},"mountPath":{"description":"The path that the host volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagation"}},"nullable":true,"type":"object"},"HostPathMountPropagation":{"description":"Share this volumes mount with other containers. If set to HostToContainer, this volume mount will receive all subsequent mounts that are mounted to this volume or any of its subdirectories. In case of multiple hostPath entries, this field should have the same value for all of them.","type":"string","enum":["None","HostToContainer"],"nullable":true},"HostPathItems":{"description":"Set of host paths to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/HostPathInstance"},"nullable":true},"NfssDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsInstance"},"instances":{"$ref":"#/components/schemas/NfsItems"}},"nullable":true,"type":"object"},"NfsInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Nfs"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Nfs":{"properties":{"path":{"description":"Path that is exported by the NFS server (mandatory). For more information, see [NFS](https://kubernetes.io/docs/concepts/storage/volumes#nfs).","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the NFS export to be mounted with read-only permissions.","type":"boolean","default":true,"nullable":true},"server":{"description":"The hostname or IP address of the NFS server. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"The path that the NFS volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"NfsItems":{"description":"Set of nfs volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/NfsInstance"},"nullable":true},"GitsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/GitInstance"},"instances":{"$ref":"#/components/schemas/GitItems"}},"nullable":true,"type":"object"},"GitInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/GitCommon"},{"$ref":"#/components/schemas/GitPassword"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"GitCommon":{"properties":{"repository":{"description":"URL to a remote Git repository. The content of this repository will be mapped to the container running the workload. (mandatory)","type":"string","minLength":1,"nullable":true},"branch":{"description":"Specific branch to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"revision":{"description":"Specific revision to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the Git repository will be mapped (mandatory).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitPassword":{"properties":{"passwordSecret":{"description":"Secret containing the credentials of the repository (needed for non public repository which requires authentication).","type":"string","minLength":1,"nullable":true},"secretKeyOfUser":{"description":"The key to use for loading the user name from the secret. The default is `User`.","type":"string","minLength":1,"nullable":true},"secretKeyOfPassword":{"description":"The key to use for loading the password from the secret. The default is `Password`.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitItems":{"description":"Set of git repositories to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/GitInstance"},"nullable":true},"ConfigMapsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapInstance"},"instances":{"$ref":"#/components/schemas/ConfigMapField"}},"nullable":true,"type":"object"},"ConfigMapInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/ConfigMap"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"ConfigMap":{"properties":{"configMap":{"description":"The name of the ConfigMap resource. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"Local path within the workload to which the ConfigMap will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ConfigMapField":{"description":"Set of config map volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/ConfigMapInstance"},"nullable":true},"SecretsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretInstance2"},"instances":{"$ref":"#/components/schemas/SecretItems1"}},"nullable":true,"type":"object"},"SecretInstance2":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Secret5"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Secret5":{"allOf":[{"$ref":"#/components/schemas/SecretFieldsUpdatable"},{"$ref":"#/components/schemas/SecretFieldsNonUpdatable"}]},"SecretFieldsUpdatable":{"properties":{"mountPath":{"description":"Local path within the workload to which the Secret will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretFieldsNonUpdatable":{"properties":{"secret":{"description":"The name of the Secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretItems1":{"description":"Set of secret volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/SecretInstance2"},"nullable":true},"EmptyDirsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirInstance"},"instances":{"$ref":"#/components/schemas/EmptyDirItems"}},"nullable":true,"type":"object"},"EmptyDirInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/EmptyDir"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"EmptyDir":{"properties":{"path":{"description":"Local path within the workload to which the EmptyDir volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"medium":{"description":"The type of storage medium for the volume. Use \"Memory\" for memory-backed storage, or leave empty for disk-backed storage.","type":"string","minLength":1,"nullable":true},"sizeLimit":{"description":"The total amount of local storage or memory required for the emptyDir volume. Specify using Kubernetes quantity format (e.g., 1G, 500Mi).","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true}},"nullable":true,"type":"object"},"EmptyDirItems":{"description":"A list of emptyDir volumes to mount in the workload.","type":"array","items":{"$ref":"#/components/schemas/EmptyDirInstance"},"nullable":true},"NonInferenceStorageFieldsDefaults":{"properties":{"s3":{"$ref":"#/components/schemas/S3sDefaults"}},"nullable":true,"type":"object"},"S3sDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Instance"},"instances":{"$ref":"#/components/schemas/S3Items"}},"nullable":true,"type":"object"},"S3Instance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/S3Common"},{"$ref":"#/components/schemas/S3AccessKey"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"S3Common":{"properties":{"bucket":{"description":"The name of the bucket. (mandatory)","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the S3 bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"url":{"description":"The url of the S3 service provider. The default is the URL of the Amazon AWS S3 service.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3AccessKey":{"properties":{"accessKeySecret":{"description":"Name of the secret containing credentials of the S3 bucket. Used for private S3 buckets.","type":"string","minLength":1,"nullable":true},"secretKeyOfAccessKeyId":{"description":"The key to use for loading the access key id from the secret. The default is `AccessKeyId`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true},"secretKeyOfSecretKey":{"description":"The key to use for loading the secret key from the secret. The default is `SecretKey`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3Items":{"description":"Set of s3 buckets to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/S3Instance"},"nullable":true},"NonInferenceFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridable"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridable":{"description":"Container non Inference overrideable fields. It adds properties which are not allowed for Inference containers","properties":{"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.","type":"boolean","nullable":true},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TrainingPolicyRulesV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFieldsRules"},{"$ref":"#/components/schemas/NodeRelatedFlatFieldsRules"},{"$ref":"#/components/schemas/CommonItemizedFieldsRules"},{"$ref":"#/components/schemas/AdvancedFlatFieldsRules"},{"$ref":"#/components/schemas/ConnectivityRules"},{"$ref":"#/components/schemas/TrainingFieldsRules"},{"$ref":"#/components/schemas/SecurityRules"},{"$ref":"#/components/schemas/ComputeRules"},{"$ref":"#/components/schemas/StorageRules"},{"$ref":"#/components/schemas/NonInferenceFlatFieldsRules"}]},"CommonFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridableRules"},{"$ref":"#/components/schemas/ContainerNonOverridableRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPodRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPGRules"}],"nullable":true,"type":"object"},"ContainerOverridableRules":{"description":"Container related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"command":{"$ref":"#/components/schemas/StringRules"},"args":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StringRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/StringRulesOptions"}],"nullable":true,"type":"object"},"StringRulesCommon":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true}}},"SourceOfRule":{"description":"This field is used by the system along with effective rules, in order to specify the org unit from which this effective rule has been derived. It should be left empty when sending apply policy requests.","required":["scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"isFallback":{"description":"source of this rule is the fallback policy","type":"boolean"}},"nullable":true,"type":"object"},"StringRulesOptions":{"properties":{"options":{"description":"Set of options that the value of the field must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"},"nullable":true}}},"StringOption":{"description":"One of the values that the field can be assigned to, when options police is applied on the field.","required":["value"],"properties":{"value":{"description":"The value that the field should hold","type":"string"},"displayed":{"description":"Textual description of the value. to be used by user interface applications.","type":"string","nullable":true}}},"ContainerNonOverridableRules":{"properties":{"image":{"$ref":"#/components/schemas/StringRules"},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicyRules"},"workingDir":{"$ref":"#/components/schemas/StringRules"},"createHomeDir":{"$ref":"#/components/schemas/BooleanRules"},"probes":{"$ref":"#/components/schemas/ProbesRules"}},"nullable":true,"type":"object"},"ImagePullPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ImagePullPolicyOptions"}],"nullable":true,"type":"object"},"ImagePullPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ImagePullPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"BooleanRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ProbesRules":{"properties":{"readiness":{"$ref":"#/components/schemas/ProbeRules"}},"nullable":true,"type":"object"},"ProbeRules":{"properties":{"initialDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"periodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"timeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"successThreshold":{"$ref":"#/components/schemas/IntegerRules"},"failureThreshold":{"$ref":"#/components/schemas/IntegerRules"},"handler":{"$ref":"#/components/schemas/ProbeHandlerRules"}},"nullable":true,"type":"object"},"IntegerRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"DefaultFromRule":{"properties":{"field":{"description":"The default of this field is taken from another field, with optional factor. The specified field must belong to the same workload section (compute, security, etc). For itemized field, the value of the field will be taken from the same instance.","type":"string","nullable":true},"factor":{"description":"Multiple the value of the fromField by this factor to get the value for this field For example, if factor is 2 and defaultFrom field has value of 8, the calculated default will be determined to be 16.","type":"number","format":"double","nullable":true,"default":1}},"nullable":true,"type":"object"},"ProbeHandlerRules":{"properties":{"httpGet":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"port":{"$ref":"#/components/schemas/IntegerRules"},"host":{"$ref":"#/components/schemas/StringRules"},"scheme":{"$ref":"#/components/schemas/StringRules"}}}},"nullable":true,"type":"object"},"ResourcesFlatFieldsPerPodRules":{"description":"Resource related parameters.","properties":{"nodeType":{"$ref":"#/components/schemas/StringRules"},"nodeAffinityRequired":{"$ref":"#/components/schemas/ArbitraryRules"},"podAffinity":{"$ref":"#/components/schemas/PodAffinityRules"}},"nullable":true,"type":"object"},"ArbitraryRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this arbitrary object is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"PodAffinityRules":{"properties":{"type":{"$ref":"#/components/schemas/PodAffinityTypeRules"},"key":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PodAffinityTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PodAffinityTypeOptions"}],"nullable":true,"type":"object"},"PodAffinityTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PodAffinityType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"type":"object"},"ResourcesFlatFieldsPerPGRules":{"description":"Resource related parameters.","properties":{"category":{"$ref":"#/components/schemas/StringRules"},"priorityClass":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NodeRelatedFlatFieldsRules":{"description":"Node pools related parameters.","properties":{"nodePools":{"$ref":"#/components/schemas/ArrayRules"}},"nullable":true,"type":"object"},"ArrayRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this array is mandatory. Mandatory array must include at least one item. default to false.","type":"boolean","nullable":true},"options":{"description":"Set of options that the value of each item of the array must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"}},"canEdit":{"description":"Whether the value of the array, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"CommonItemizedFieldsRules":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldRules"},{"$ref":"#/components/schemas/AdvancedItemizedRules"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldRules":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"InstancesRules":{"properties":{"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ItemRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canAdd":{"description":"Whether it is permitted to add items. Default to true.","type":"boolean","nullable":true},"locked":{"description":"Set of keys for items that are \"locked\", i.e. cannot be removed or deleted.","type":"array","items":{"type":"string"}}},"nullable":true,"type":"object"},"AdvancedItemizedRules":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldRules"},{"$ref":"#/components/schemas/LabelsFieldRules"},{"$ref":"#/components/schemas/ImagePullSecretsFieldRules"},{"$ref":"#/components/schemas/TolerationsFieldRules"}],"type":"object","nullable":true},"AnnotationsFieldRules":{"properties":{"annotations":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"LabelsFieldRules":{"properties":{"labels":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"ImagePullSecretsFieldRules":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ImagePullSecretsRulesAttributes"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRulesAttributes":{"description":"Rules for the attributes of imagePullSecrets","properties":{"name":{"$ref":"#/components/schemas/StringRules"},"userCredentials":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationsFieldRules":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsRules"}},"nullable":true,"type":"object"},"TolerationsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/TolerationRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"TolerationRules":{"description":"Toleration details.","properties":{"operator":{"$ref":"#/components/schemas/TolerationOperatorRules"},"key":{"$ref":"#/components/schemas/StringRules"},"value":{"$ref":"#/components/schemas/StringRules"},"effect":{"$ref":"#/components/schemas/TolerationEffectRules"},"seconds":{"$ref":"#/components/schemas/IntegerRules"},"exclude":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationOperatorRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationOperatorOptions"}],"nullable":true,"type":"object"},"TolerationOperatorOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationOperator"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"TolerationEffectRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationEffectOptions"}],"nullable":true,"type":"object"},"TolerationEffectOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationEffect"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"AdvancedFlatFieldsRules":{"properties":{"terminateAfterPreemption":{"$ref":"#/components/schemas/BooleanRules"},"autoDeletionTimeAfterCompletionSeconds":{"$ref":"#/components/schemas/IntegerRules"},"terminationGracePeriodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"backoffLimit":{"$ref":"#/components/schemas/IntegerRules"},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicyRule"}},"nullable":true,"type":"object"},"RestartPolicyRule":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/RestartPolicyOptions"}],"nullable":true,"type":"object"},"RestartPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for restartPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/RestartPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ConnectivityRules":{"properties":{"ports":{"$ref":"#/components/schemas/PortsRules"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsRules"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsRules"}},"nullable":true,"type":"object"},"PortsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PortRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PortRules":{"description":"Rules for port attributes","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"serviceType":{"$ref":"#/components/schemas/PortServiceTypeRules"},"customExternalPort":{"$ref":"#/components/schemas/BooleanRules"},"external":{"$ref":"#/components/schemas/IntegerRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PortServiceTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PortServiceTypeOptions"}],"nullable":true,"type":"object"},"PortServiceTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PortServiceType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ExposedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExposedUrlRules":{"description":"Rules for the attributed of exposedUrls","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"customUrl":{"$ref":"#/components/schemas/BooleanRules"},"url":{"$ref":"#/components/schemas/StringRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"RelatedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"RelatedUrlRules":{"description":"Rules for the attributes of relatedUrls","properties":{"url":{"$ref":"#/components/schemas/StringRules"},"type":{"$ref":"#/components/schemas/StringRules"},"name":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"TrainingFieldsRules":{"properties":{"completions":{"$ref":"#/components/schemas/IntegerRules"},"parallelism":{"$ref":"#/components/schemas/IntegerRules"}},"nullable":true,"type":"object"},"SecurityRules":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFieldsRules"}},"nullable":true,"type":"object"},"SecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFieldsRules"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFieldsRules"}],"nullable":true,"type":"object"},"CommonSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridableRules"},{"$ref":"#/components/schemas/CommonSecurityOverridableRules"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridableRules":{"properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSourceRules"},"capabilities":{"$ref":"#/components/schemas/ArrayRules"},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileTypeRules"},"runAsNonRoot":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyRootFilesystem":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"UidGidSourceRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/UidGidSourceOptions"}],"nullable":true,"type":"object"},"UidGidSourceOptions":{"properties":{"options":{"description":"Limit the permitted values for uidGidSource to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/UidGidSource"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"SeccompProfileTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/SeccompProfileTypeOptions"}],"nullable":true,"type":"object"},"SeccompProfileTypeOptions":{"properties":{"options":{"description":"Limit the permitted values for secompProfileType to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/SeccompProfileType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"CommonSecurityOverridableRules":{"description":"Security related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"runAsUid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"runAsGid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"supplementalGroups":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"IntegerRulesOptional":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridableRules"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridableRules":{"properties":{"allowPrivilegeEscalation":{"$ref":"#/components/schemas/BooleanRules"},"hostIpc":{"$ref":"#/components/schemas/BooleanRules"},"hostNetwork":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ComputeRules":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsRules"}},"nullable":true,"type":"object"},"ComputeFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFieldsRules"},{"$ref":"#/components/schemas/ComputeItemizedFieldsRules"}],"nullable":true,"type":"object"},"ComputeFlatFieldsRules":{"properties":{"cpuCoreRequest":{"$ref":"#/components/schemas/NumberRules"},"cpuCoreLimit":{"$ref":"#/components/schemas/NumberRules"},"cpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"cpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"},"largeShmRequest":{"$ref":"#/components/schemas/BooleanRules"},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestRules"},"migProfile":{"$ref":"#/components/schemas/MigProfileRules","deprecated":true},"gpuDevicesRequest":{"$ref":"#/components/schemas/IntegerRules"},"gpuPortionRequest":{"$ref":"#/components/schemas/NumberRules"},"gpuPortionLimit":{"$ref":"#/components/schemas/NumberRules"},"gpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"gpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"}},"nullable":true,"type":"object"},"NumberRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"number","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"number","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=3, step=0.25 implies that the values the field can hold are 2, 2.25, 2.5 and 3.","type":"number","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"QuantityRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"max":{"description":"The maximum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"GpuRequestRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/GpuRequestOptions"}],"nullable":true,"type":"object"},"GpuRequestOptions":{"properties":{"options":{"description":"Limit the permitted values for gpuRequest to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/GpuRequestType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"MigProfileRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/MigProfileOptions"}],"nullable":true,"type":"object"},"MigProfileOptions":{"properties":{"options":{"description":"Limit the permitted values for migProfile to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/MigProfile"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object","deprecated":true},"ComputeItemizedFieldsRules":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesRules"}},"nullable":true,"type":"object"},"ExtendedResourcesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResourceRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExtendedResourceRules":{"description":"Rules for the attributes of extendedResources","properties":{"quantity":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StorageRules":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsRules"}},"nullable":true,"type":"object"},"StorageFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsRules"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsRules"}],"nullable":true,"type":"object"},"CommonStorageFieldsRules":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesRules"},"pvc":{"$ref":"#/components/schemas/PvcsRules"},"hostPath":{"$ref":"#/components/schemas/HostPathsRules"},"nfs":{"$ref":"#/components/schemas/NfssRules"},"git":{"$ref":"#/components/schemas/GitsRules"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsRules"},"secretVolume":{"$ref":"#/components/schemas/SecretsRules"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsRules"}},"nullable":true,"type":"object"},"DataVolumesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"DataVolumeRules":{"properties":{"id":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PvcsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PvcRules":{"properties":{"claimName":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"claimInfo":{"$ref":"#/components/schemas/ClaimInfoRules"}},"nullable":true,"type":"object"},"ClaimInfoRules":{"properties":{"size":{"$ref":"#/components/schemas/StringRules"},"storageClass":{"$ref":"#/components/schemas/StringRules"},"accessModes":{"$ref":"#/components/schemas/PvcAccessModesRules"}},"nullable":true,"type":"object"},"PvcAccessModesRules":{"description":"Rules for access mode(s) for a newly created PVC.","properties":{"readWriteOnce":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyMany":{"$ref":"#/components/schemas/BooleanRules"},"readWriteMany":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"HostPathsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"HostPathRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagationRules"}},"nullable":true,"type":"object"},"HostPathMountPropagationRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/HostPathMountPropagationOptions"}],"nullable":true,"type":"object"},"HostPathMountPropagationOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/HostPathMountPropagation"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}}},"NfssRules":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"NfsRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"server":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"GitsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/GitRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"GitRules":{"properties":{"repository":{"$ref":"#/components/schemas/StringRules"},"branch":{"$ref":"#/components/schemas/StringRules"},"revision":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ConfigMapsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ConfigMapRules":{"properties":{"configMap":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"subPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"SecretRules":{"properties":{"secret":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"EmptyDirsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"EmptyDirRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"medium":{"$ref":"#/components/schemas/StringRules"},"sizeLimit":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceStorageFieldsRules":{"properties":{"s3":{"$ref":"#/components/schemas/S3sRules"}},"nullable":true,"type":"object"},"S3sRules":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Rules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"S3Rules":{"properties":{"bucket":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"url":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridableRules"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridableRules":{"properties":{"tty":{"$ref":"#/components/schemas/BooleanRules"},"stdin":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ImposedAssets":{"description":"a list of datasource assets to import into the policy. these datasources will be included in any workload that will be created in the scope of the policy.","type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"TrainingPolicyV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyMeta"},"policy":{"$ref":"#/components/schemas/TrainingPolicyDefaultsAndRulesV2"},"effective":{"$ref":"#/components/schemas/TrainingPolicyDefaultsAndRulesV2"},"effectiveUpdatedAt":{"$ref":"#/components/schemas/Timestamp"}},"nullable":true,"type":"object"},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"Timestamp":{"description":"The time at which an event occurred. e.g. the time an effective policy has been updated","type":"string","minLength":1,"format":"date-time"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy/trainings":{"put":{"summary":"Overwrite a training policy.","description":"Use to apply a training policy for a given organizational unit.","operationId":"overwrite_training_policy_v2","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/ValidateOnly"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingPolicyOverwriteRequestV2"}}}},"responses":{"200":{"description":"Policy applied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingPolicyV2"}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Delete a training policy.

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

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"PolicyScope":{"name":"scope","in":"query","required":true,"description":"The scope that the policy relates to.","schema":{"type":"string","enum":["tenant","cluster","department","project"]}},"FilterByDepartment":{"name":"departmentId","in":"query","description":"Filter using the department id.","required":false,"schema":{"type":"string"}},"FilterByProject":{"name":"projectId","in":"query","description":"project id to filter by","required":false,"schema":{"type":"string"}},"FilterByCluster":{"name":"clusterId","in":"query","description":"Filter using the Universally Unique Identifier (UUID) of the cluster.","required":false,"schema":{"type":"string","format":"uuid"}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404NotFound":{"description":"The specified resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}}},"paths":{"/api/v2/policy/trainings":{"delete":{"summary":"Delete a training policy.","description":"Use to delete a training policy for a given organizational unit.","operationId":"delete_training_policy","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/PolicyScope"},{"$ref":"#/components/parameters/FilterByDepartment"},{"$ref":"#/components/parameters/FilterByProject"},{"$ref":"#/components/parameters/FilterByCluster"}],"responses":{"204":{"description":"The policy was deleted successfully."},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"404":{"$ref":"#/components/responses/404NotFound"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Update a training policy.

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

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"ValidateOnly":{"name":"validateOnly","in":"query","required":false,"description":"Validate the given policy payload without applying it","schema":{"type":"boolean"}}},"schemas":{"TrainingPolicyChangeRequestV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyCreationFields"},"policy":{"$ref":"#/components/schemas/TrainingPolicyDefaultsAndRulesV2"},"reset":{"$ref":"#/components/schemas/FieldsToReset"}},"type":"object"},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"TrainingPolicyDefaultsAndRulesV2":{"properties":{"defaults":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFields"},{"$ref":"#/components/schemas/NodeRelatedFlatFields"},{"$ref":"#/components/schemas/CommonItemizedDefaults"},{"$ref":"#/components/schemas/AdvancedFlatFields"},{"$ref":"#/components/schemas/ConnectivityDefaults"},{"$ref":"#/components/schemas/TrainingFields"},{"$ref":"#/components/schemas/Security"},{"$ref":"#/components/schemas/ComputeDefaults"},{"$ref":"#/components/schemas/StorageDefaults"},{"$ref":"#/components/schemas/NonInferenceFlatFields"}],"nullable":true,"type":"object"},"rules":{"allOf":[{"$ref":"#/components/schemas/TrainingPolicyRulesV2"}],"nullable":true,"type":"object"},"imposedAssets":{"$ref":"#/components/schemas/ImposedAssets"},"status":{"$ref":"#/components/schemas/PolicyValidationStatus"}},"nullable":true,"type":"object"},"CommonFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridable"},{"$ref":"#/components/schemas/ContainerNonOverridable"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPod"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPG"}],"nullable":true,"type":"object"},"ContainerOverridable":{"description":"Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"command":{"description":"A command to the server as the entry point of the container running the workload.","type":"string","minLength":1,"nullable":true},"args":{"description":"Arguments to the command that the container running the workload executes.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ContainerNonOverridable":{"description":"Container non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"image":{"description":"Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a workload.","type":"string","minLength":1,"nullable":true},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicy"},"workingDir":{"description":"Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.","type":"string","minLength":1,"nullable":true},"createHomeDir":{"description":"When set to `true`, creates a home directory for the container.","type":"boolean","nullable":true},"probes":{"$ref":"#/components/schemas/Probes"}},"nullable":true,"type":"object"},"ImagePullPolicy":{"description":"Image pull policy. Defaults to `Always` if `:latest` tag is specified, otherwise it is `IfNotPresent`.","type":"string","minLength":1,"enum":["Always","Never","IfNotPresent"],"nullable":true},"Probes":{"description":"Probes are used to determine if the container is healthy and ready to accept traffic.","type":"object","properties":{"readiness":{"$ref":"#/components/schemas/Probe"}},"nullable":true},"Probe":{"type":"object","properties":{"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness or readiness probes are initiated.","type":"integer","format":"int32","minimum":0,"nullable":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe.","type":"integer","format":"int32","minimum":1,"nullable":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out.","type":"integer","format":"int32","minimum":1,"nullable":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed.","type":"integer","format":"int32","minimum":1,"nullable":true},"failureThreshold":{"description":"When a probe fails, the number of times to try before giving up.","type":"integer","format":"int32","minimum":1,"nullable":true},"handler":{"$ref":"#/components/schemas/ProbeHandler"}},"nullable":true},"ProbeHandler":{"description":"The action taken to determine the health of the container. (mandatory)","type":"object","properties":{"httpGet":{"description":"An action based on HTTP Get requests.","type":"object","properties":{"path":{"description":"Path to access on the HTTP server, defaults to /.","type":"string","pattern":"^(\\x2F[a-zA-Z0-9\\-_.\\x2F]*)?$","nullable":true},"port":{"description":"Number of the port to access on the container.","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"host":{"description":"Host name to connect to, defaults to the pod IP.","type":"string","format":"hostname","nullable":true},"scheme":{"$ref":"#/components/schemas/ProbeHandlerScheme"}}}},"nullable":true},"ProbeHandlerScheme":{"description":"Scheme to use for connecting to the host, defaults to HTTP.","type":"string","enum":["HTTP","HTTPS"],"nullable":true},"ResourcesFlatFieldsPerPod":{"description":"Resource parameters.","properties":{"nodeType":{"description":"Nodes (machines), or a group of nodes on which the workload will run. To use this feature, your Administrator will need to label nodes. For more information, see [Group Nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/researcher-setup/limit-to-node-group). When using this flag with with Project-based affinity, it refines the list of allowable node groups set in the Project. For more information, see [Projects](https://docshub.run.ai/guides/platform-management/aiinitiatives/organization/projects).","type":"string","minLength":1,"nullable":true},"nodeAffinityRequired":{"$ref":"#/components/schemas/NodeAffinityRequired"},"podAffinity":{"$ref":"#/components/schemas/PodAffinity"}},"nullable":true,"type":"object"},"NodeAffinityRequired":{"type":"object","description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","properties":{"nodeSelectorTerms":{"description":"A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/components/schemas/NodeSelectorTerm"}}},"nullable":true},"NodeSelectorTerm":{"type":"object","description":"A null or empty node selector term matches no objects. The requirements of them are ANDed.","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"$ref":"#/components/schemas/MatchExpression"}}},"nullable":true},"MatchExpression":{"type":"object","description":"A selector that contains values, a key, and an operator that relates the key and values.","properties":{"key":{"description":"The label key that the selector applies to (mandatory).","type":"string"},"operator":{"$ref":"#/components/schemas/MatchExpressionOperator"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.","type":"array","items":{"type":"string"}}},"required":["key","operator"],"nullable":true},"MatchExpressionOperator":{"description":"Represents a key's relationship to a set of values (mandatory).","type":"string","enum":["In","NotIn","Exists","DoesNotExist","Gt","Lt"]},"PodAffinity":{"description":"Pod affinity scheduling rules (e.g. co-locate this workload in the same node, zone, etc. as some other workloads).","type":"object","properties":{"type":{"$ref":"#/components/schemas/PodAffinityType"},"key":{"description":"The label key to use. (mandatory)","type":"string","nullable":true}},"nullable":true},"PodAffinityType":{"description":"The affinity type, required or preferred. (mandatory)","type":"string","enum":["Required","Preferred"],"nullable":true},"ResourcesFlatFieldsPerPG":{"description":"Resource parameters.","properties":{"category":{"$ref":"#/components/schemas/Category"},"priorityClass":{"$ref":"#/components/schemas/PriorityClass"}},"nullable":true,"type":"object"},"Category":{"description":"Specify the workload category assigned to the workload. Categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.","type":"string","nullable":true},"PriorityClass":{"description":"Specifies the priority class for the workload.  Valid values are: very-low, low, medium-low, medium, medium-high, high, very-high.  You can use this parameter to adjust the workload's scheduling behavior.  Each workload type has a default priority.  To view the default priority for each workload type, use the GET /workload-types endpoint.","type":"string","nullable":true},"NodeRelatedFlatFields":{"description":"Node related parameters.","properties":{"nodePools":{"description":"A prioritized list of node pools for the scheduler to run the workload on. The scheduler will always try to use the first node pool before moving to the next one if the first is not available.","type":"array","items":{"type":"string"},"nullable":true}},"nullable":true,"type":"object"},"CommonItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldDefaults"},{"$ref":"#/components/schemas/AdvancedItemizedDefaults"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldDefaults":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/EnvironmentVariablesDefaults"}},"nullable":true,"type":"object"},"EnvironmentVariablesDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/EnvironmentVariables"}},"nullable":true,"type":"object"},"EnvironmentVariables":{"description":"Set of environment variables to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"nullable":true},"EnvironmentVariable":{"description":"Details of an environment variable which is populated into the container.","properties":{"name":{"description":"The name of the environment variable. (mandatory)","type":"string","minLength":1,"nullable":true},"value":{"description":"The value of the environment variable. (mutually exclusive with secret, credential, configMap and podFieldRef)","type":"string","nullable":true},"secret":{"$ref":"#/components/schemas/EnvironmentVariableSecret"},"configMap":{"$ref":"#/components/schemas/EnvironmentVariableConfigMap"},"podFieldRef":{"$ref":"#/components/schemas/EnvironmentVariablePodFieldReference"},"exclude":{"description":"Use 'true' in case the environment variable is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true},"description":{"description":"Description of the environment variable.","type":"string","nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableSecret":{"description":"Details of the secret and key use to populate the environment variable","properties":{"name":{"description":"The name of the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableConfigMap":{"description":"Details of the configMap and key use to populate the environment variable","properties":{"name":{"description":"The name of the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariablePodFieldReference":{"description":"Details of the field-reference and key use to populate the environment variable","properties":{"path":{"description":"The field path resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"AdvancedItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldDefaults"},{"$ref":"#/components/schemas/LabelsFieldDefaults"},{"$ref":"#/components/schemas/ImagePullSecretsFieldDefaults"},{"$ref":"#/components/schemas/TolerationsFieldDefaults"}],"type":"object","nullable":true},"AnnotationsFieldDefaults":{"properties":{"annotations":{"$ref":"#/components/schemas/AnnotationsDefaults"}},"nullable":true,"type":"object"},"AnnotationsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Annotations"}},"nullable":true,"type":"object"},"Annotations":{"description":"Set of annotations to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Annotation"},"nullable":true},"Annotation":{"description":"Annotation details to be populated into the container.","properties":{"name":{"description":"The name of the annotation (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the annotation.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the annotation is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"LabelsFieldDefaults":{"properties":{"labels":{"$ref":"#/components/schemas/LabelsDefaults"}},"nullable":true,"type":"object"},"LabelsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Labels"}},"nullable":true,"type":"object"},"Labels":{"description":"Set of labels to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Label"},"nullable":true},"Label":{"description":"Label details to be populated into the container.","properties":{"name":{"description":"The name of the label (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the label.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ImagePullSecretsFieldDefaults":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsDefaults"}},"nullable":true,"type":"object"},"ImagePullSecretsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/ImagePullSecrets"}},"nullable":true,"type":"object"},"ImagePullSecrets":{"description":"A list of references to Kubernetes secrets in the same namespace used for pulling container images.","type":"array","items":{"$ref":"#/components/schemas/ImagePullSecret"},"nullable":true},"ImagePullSecret":{"description":"A reference to a secret in the same namespace used to pull container images.","properties":{"name":{"type":"string","description":"The name of the Kubernetes secret containing the image pull credentials."},"userCredential":{"type":"boolean","description":"Indicates whether the secret is a user credential. Set to true if the secret was created by the user and is only accessible by them.","nullable":true},"exclude":{"description":"Use 'true' in case the secret is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"TolerationsFieldDefaults":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsDefaults"}},"nullable":true,"type":"object"},"TolerationsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Toleration"},"instances":{"$ref":"#/components/schemas/Tolerations"}},"nullable":true,"type":"object"},"Toleration":{"description":"Toleration details.","properties":{"name":{"description":"The name of the toleration.","type":"string","minLength":1,"nullable":true},"operator":{"$ref":"#/components/schemas/TolerationOperator"},"key":{"description":"The taint key that the toleration applies to. (mandatory)","type":"string","nullable":true},"value":{"description":"The taint value the toleration matches to. Mandatory if operator is Exists, forbidden otherwise.","type":"string","nullable":true},"effect":{"$ref":"#/components/schemas/TolerationEffect"},"seconds":{"description":"The period of time the toleration tolerates the taint. Valid only if effect is NoExecute. taint.","type":"integer","minimum":1,"nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TolerationOperator":{"description":"A key's relationship to the value. Equal uses key and value. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. (mandatory)","type":"string","enum":["Equal","Exists"],"nullable":true},"TolerationEffect":{"description":"The taint effect to match. (mandatory)","type":"string","enum":["NoSchedule","NoExecute","PreferNoSchedule","Any"],"nullable":true},"Tolerations":{"description":"Set of tolerations to apply to the workload.","type":"array","items":{"$ref":"#/components/schemas/Toleration"},"nullable":true},"AdvancedFlatFields":{"properties":{"terminateAfterPreemption":{"description":"Indicates if the job should be terminated by the system after it has been preempted.","type":"boolean","nullable":true},"autoDeletionTimeAfterCompletionSeconds":{"description":"Specifies the duration after which a finished workload (completed or failed) will be automatically deleted. The default is 30 days.","format":"int64","type":"integer","nullable":true},"terminationGracePeriodSeconds":{"description":"Duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down).","format":"int64","type":"integer","minimum":0,"nullable":true},"backoffLimit":{"description":"Specifies the number of retries before marking a workload as failed (not applicable to Inference workloads). The default value is 6.","format":"int64","type":"integer","nullable":true},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicy"}},"nullable":true,"type":"object"},"RestartPolicy":{"description":"Specify the restart policy of the workload pods. Default is empty, which is determine by the framework default","type":"string","minLength":1,"enum":["Always","Never","OnFailure"],"nullable":true},"ConnectivityDefaults":{"properties":{"ports":{"$ref":"#/components/schemas/PortsDefaults"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsDefaults"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsDefaults"}},"nullable":true,"type":"object"},"PortsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Port"},"instances":{"$ref":"#/components/schemas/Ports"}},"nullable":true,"type":"object"},"Port":{"description":"A port for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"serviceType":{"$ref":"#/components/schemas/PortServiceType"},"external":{"description":"The external port which allows a connection to the container port. If not specified, the port will be auto-generated by the system..","type":"integer","format":"int32","nullable":true},"toolType":{"description":"The tool type that runs on this port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this port.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PortServiceType":{"description":"The service type of the port (mandatory).","type":"string","enum":["LoadBalancer","NodePort","ClusterIP"],"nullable":true},"Ports":{"description":"Set of container ports that the workload exposes.","type":"array","items":{"$ref":"#/components/schemas/Port"},"nullable":true},"ExposedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrl"},"instances":{"$ref":"#/components/schemas/ExposedUrls"}},"nullable":true,"type":"object"},"ExposedUrl":{"description":"A URL for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","nullable":true},"url":{"description":"The URL for connecting to the container port. If not specified, the URL will be auto-generated by the system..","type":"string","nullable":true},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"toolType":{"description":"The tool type that runs on this container port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this url.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the instance is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExposedUrls":{"description":"Set of container ports that the workload exposes via URLs.","type":"array","items":{"$ref":"#/components/schemas/ExposedUrl"},"nullable":true},"RelatedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrl"},"instances":{"$ref":"#/components/schemas/RelatedUrls"}},"nullable":true,"type":"object"},"RelatedUrl":{"description":"A URL that is related to the workload. For example, a URL to an external server providing statistics or logging about the workload.","properties":{"url":{"description":"The URL for connecting an external service related to the workload. (mandatory)","type":"string","nullable":true},"type":{"description":"The type of service that the url provides. For example, wandb (Weights & Biases). (mandatory)","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"RelatedUrls":{"description":"Set of URLs that are related to the workload.","type":"array","items":{"$ref":"#/components/schemas/RelatedUrl"},"nullable":true},"TrainingFields":{"allOf":[{"$ref":"#/components/schemas/CompletionsField"},{"$ref":"#/components/schemas/ParallelismField"}],"nullable":true,"type":"object"},"CompletionsField":{"properties":{"completions":{"description":"Used with Hyperparameter Optimization. Specifies the number of successful pods the job should reach to be completed. The Job will be marked as successful once the specified amount of pods has been reached (applicable to standard training only).","type":"integer","format":"int32","nullable":true}},"nullable":true,"type":"object"},"ParallelismField":{"properties":{"parallelism":{"description":"Used with Hyperparameter Optimization. Specifies the maximum number of pods the workload should run at any given time (applicable to standard training only).","type":"integer","format":"int32","nullable":true}},"nullable":true,"type":"object"},"Security":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFields"}},"nullable":true,"type":"object"},"SecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFields"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFields"}],"nullable":true,"type":"object"},"CommonSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridable"},{"$ref":"#/components/schemas/CommonSecurityOverridable"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridable":{"description":"Security non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSource"},"capabilities":{"description":"Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.","type":"array","items":{"$ref":"#/components/schemas/Capability"},"nullable":true},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileType"},"runAsNonRoot":{"description":"Force the container to run as a non-root user.","type":"boolean","nullable":true},"readOnlyRootFilesystem":{"description":"If true, mounts the container's root filesystem as read-only.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"UidGidSource":{"description":"Indicate the way to determine the user and group ids of the container. The options are a. `fromTheImage` - user and group ids are determined by the docker image that the container runs. this is the default option. b. `custom` - user and group ids can be specified in the environment asset and/or the workload creation request. c. `idpToken` - user and group ids are determined according to the identity provider (idp) access token. This option is intended for internal use of the environment UI form. For more information, see [User Identity](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/runai-setup/config/non-root-containers/).","type":"string","enum":["fromTheImage","fromIdpToken","custom"],"nullable":true},"Capability":{"type":"string","enum":["AUDIT_CONTROL","AUDIT_READ","AUDIT_WRITE","BLOCK_SUSPEND","CHOWN","DAC_OVERRIDE","DAC_READ_SEARCH","FOWNER","FSETID","IPC_LOCK","IPC_OWNER","KILL","LEASE","LINUX_IMMUTABLE","MAC_ADMIN","MAC_OVERRIDE","MKNOD","NET_ADMIN","NET_BIND_SERVICE","NET_BROADCAST","NET_RAW","SETGID","SETFCAP","SETPCAP","SETUID","SYS_ADMIN","SYS_BOOT","SYS_CHROOT","SYS_MODULE","SYS_NICE","SYS_PACCT","SYS_PTRACE","SYS_RAWIO","SYS_RESOURCE","SYS_TIME","SYS_TTY_CONFIG","SYSLOG","WAKE_ALARM"]},"SeccompProfileType":{"description":"Indicates which kind of seccomp profile will be applied to the container. The options are a. `RuntimeDefault` - the container runtime default profile should be used. b. `Unconfined` - no profile should be applied. c. `Localhost` is not yet supported by Run:ai.","type":"string","enum":["RuntimeDefault","Unconfined","Localhost"],"nullable":true},"CommonSecurityOverridable":{"description":"Security overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"runAsUid":{"description":"The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsUid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"runAsGid":{"description":"The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsGid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"supplementalGroups":{"description":"Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled. Using an empty string implies reverting the supplementary groups of the image.","type":"string","nullable":true}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridable"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridable":{"description":"Security related fields. When used in assets context, those are environment asset fields that cannot be override in the submit workload request.","properties":{"allowPrivilegeEscalation":{"description":"Allow the container running the workload and all launched processes to gain additional privileges after the workload starts. For more information consult the User Identity in Container guide at https://docs.run.ai/admin/runai-setup/config/non-root-containers/","type":"boolean","nullable":true},"hostIpc":{"description":"Whether to enable host IPC. Defaults to false.","type":"boolean","nullable":true},"hostNetwork":{"description":"Whether to enable host networking. Default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ComputeDefaults":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsDefaults"}},"nullable":true,"type":"object"},"ComputeFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFields"},{"$ref":"#/components/schemas/ComputeItemizedFieldsDefaults"}],"nullable":true,"type":"object"},"ComputeFlatFields":{"properties":{"gpuDevicesRequest":{"description":"Requested number of GPU devices. Currently if more than one device is requested, it is not possible to provide values for gpuMemory, gpuPortion or migProfile [deprecated].","type":"integer","format":"int32","nullable":true,"minimum":0},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestType"},"gpuPortionRequest":{"description":"Required if and only if gpuRequestType is portion. States the portion of the GPU to allocate for the created workload, per GPU device, between 0 and 1. The default is no allocated GPUs.","type":"number","format":"double","nullable":true,"minimum":0},"gpuPortionLimit":{"description":"Limitations on the portion consumed by the workload, per GPU device. The system guarantees The gpuPotionLimit must be no less than the gpuPortionRequest.","type":"number","format":"double","nullable":true,"minimum":0},"gpuMemoryRequest":{"description":"Required if and only if gpuRequestType is memory. States the GPU memory to allocate for the created workload, per GPU device. Note that the workload will not be scheduled unless the system can guarantee this amount of GPU memory to the workload.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"gpuMemoryLimit":{"description":"Limitation on the memory consumed by the workload, per GPU device. The system guarantees The gpuMemoryLimit must be no less than gpuMemoryRequest.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"migProfile":{"$ref":"#/components/schemas/MigProfile","depracted":true},"cpuCoreRequest":{"description":"CPU units to allocate for the created workload (0.5, 1, .etc). The workload will receive at least this amount of CPU. Note that the workload will not be scheduled unless the system can guarantee this amount of CPUs to the workload.","format":"double","type":"number","nullable":true,"minimum":0},"cpuCoreLimit":{"description":"Limitations on the number of CPUs consumed by the workload (0.5, 1, .etc). The system guarantees that this workload will not be able to consume more than this amount of CPUs.","format":"double","type":"number","nullable":true,"minimum":0},"cpuMemoryRequest":{"description":"The amount of CPU memory to allocate for this workload (1G, 20M, .etc). The workload will receive at least this amount of memory. Note that the workload will not be scheduled unless the system can guarantee this amount of memory to the workload","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"cpuMemoryLimit":{"description":"Limitations on the CPU memory to allocate for this workload (1G, 20M, .etc). The system guarantees that this workload will not be able to consume more than this amount of memory. The workload will receive an error when trying to allocate more memory than this limit.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"largeShmRequest":{"description":"A large /dev/shm device to mount into a container running the created workload. An shm is a shared file system mounted on RAM.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"GpuRequestType":{"description":"Sets the unit type for GPU resources requests. Stated in terms of portion, memory or  mig profile [deprecated]. Sets the unit type for other GPU request fields. If `gpuDevicesRequest > 1`, only `portion` is supported. If `gpuDeviceRequest = 1`, the request type can be stated as `portion`, `memory` or `migProfile` [deprecated].","type":"string","minLength":1,"enum":["portion","memory","migProfile"],"nullable":true},"MigProfile":{"description":"Required only if `gpuRequestType` is `migProfile`. This states the memory profile to be used for the workload running NVIDIA Multi-Instance GPU (MIG) technology.","type":"string","deprecated":true,"minLength":1,"enum":["1g.5gb","1g.10gb","2g.10gb","2g.20gb","3g.20gb","3g.40gb","4g.20gb","4g.40gb","7g.40gb","7g.80gb"],"nullable":true},"ComputeItemizedFieldsDefaults":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesDefaults"}},"nullable":true,"type":"object"},"ExtendedResourcesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResource"},"instances":{"$ref":"#/components/schemas/ExtendedResources"}},"nullable":true,"type":"object"},"ExtendedResource":{"description":"Quantity of an extended resource.","properties":{"resource":{"description":"The name of the extended resource (mandatory)","type":"string","minLength":1,"nullable":true},"quantity":{"description":"The requested quantity for the resource.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the extended resource is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExtendedResources":{"description":"Extended resources and their quantity.","type":"array","items":{"$ref":"#/components/schemas/ExtendedResource"},"nullable":true},"StorageDefaults":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsDefaults"}},"nullable":true,"type":"object"},"StorageFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsDefaults"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsDefaults"}],"nullable":true,"type":"object"},"CommonStorageFieldsDefaults":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesDefaults"},"pvc":{"$ref":"#/components/schemas/PvcsDefaults"},"hostPath":{"$ref":"#/components/schemas/HostPathsDefaults"},"nfs":{"$ref":"#/components/schemas/NfssDefaults"},"git":{"$ref":"#/components/schemas/GitsDefaults"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsDefaults"},"secretVolume":{"$ref":"#/components/schemas/SecretsDefaults"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsDefaults"}},"nullable":true,"type":"object"},"DataVolumesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeInstance"},"instances":{"$ref":"#/components/schemas/DataVolumeItems"}},"nullable":true,"type":"object"},"DataVolumeInstance":{"allOf":[{"$ref":"#/components/schemas/DataVolume"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"DataVolume":{"properties":{"id":{"description":"The unique identifier of the data volume. (mandatory)","type":"string","format":"uuid","nullable":true},"mountPath":{"description":"The path where the data volume will be mounted. (mandatory)","type":"string","nullable":true}},"nullable":true,"type":"object"},"ExcludeField":{"properties":{"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"type":"object","nullable":true},"DataVolumeItems":{"description":"Set of data volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/DataVolumeInstance"},"nullable":true},"PvcsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcInstance"},"instances":{"$ref":"#/components/schemas/PvcItems"}},"nullable":true,"type":"object"},"PvcInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Pvc"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"StorageInstanceName":{"properties":{"name":{"description":"unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"Pvc":{"allOf":[{"$ref":"#/components/schemas/PvcFieldsUpdatable"},{"$ref":"#/components/schemas/PvcFieldsNonUpdatable"}]},"PvcFieldsUpdatable":{"properties":{"path":{"description":"Local path within the workload to which the PVC bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"PvcFieldsNonUpdatable":{"properties":{"existingPvc":{"description":"Verify existing PVC. PVC is assumed to exist when set to `true`. If set to `false`, the PVC will be created, if it does not exist.","type":"boolean","default":false,"nullable":true},"claimName":{"description":"Name for the PVC. Allow referencing it across workloads. If not provided, a name based on the workload name and scope will be auto-generated.","type":"string","minLength":1,"maxLength":63,"nullable":true},"readOnly":{"description":"Permit only read access to PVC.","type":"boolean","default":false,"nullable":true},"ephemeral":{"description":"Use `true` to set PVC to ephemeral. If set to `true`, the PVC will be deleted when the workload is stopped. Not supported for inference workloads.","type":"boolean","default":false,"nullable":true},"claimInfo":{"$ref":"#/components/schemas/ClaimInfo"},"dataSharing":{"description":"use `true` to share the PVC data to all projects under the selected scope.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"ClaimInfo":{"description":"Claim information for the newly created PVC. The information should not be provided when attempting to use existing PVC.","properties":{"size":{"$ref":"#/components/schemas/PvcClaimSize"},"storageClass":{"description":"Storage class name to associate with the PVC. This parameter may be omitted if there is a single storage class in the system, or you are using the default storage class. For more information, see [Storage class](https://kubernetes.io/docs/concepts/storage/storage-classes).","type":"string","minLength":1,"nullable":true},"accessModes":{"$ref":"#/components/schemas/PvcAccessModes"},"volumeMode":{"$ref":"#/components/schemas/PvcVolumeMode"},"addedAttrValues":{"$ref":"#/components/schemas/PvcAddedAttrValues"}},"nullable":true,"type":"object"},"PvcClaimSize":{"description":"Requested size for the PVC. Mandatory when existingPvc is false. Recommended sizes: TB/GB/MB/TIB/GIB/MIB","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"PvcAccessModes":{"description":"Requested access mode(s) for the newly created PVC.","properties":{"readWriteOnce":{"description":"Requesting claim that can be mounted in read/write mode to exactly one host. This is the default access mode.","type":"boolean","default":true,"nullable":true},"readOnlyMany":{"description":"Requesting claim that can be mounted in read-only mode to many hosts.","type":"boolean","default":false,"nullable":true},"readWriteMany":{"description":"Requesting claim that can be mounted in read/write mode to many hosts.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PvcVolumeMode":{"description":"The volume mode required by the claim. Choose Filesystem (default) or Block.","type":"string","enum":["Filesystem","Block"],"nullable":true},"PvcAddedAttrValues":{"description":"an optional array of key-values pairs that are written as annotations on the created PVC. the allowed attributes are determined according to the storage class configuration (see k8s-objects-tracker for further info).","type":"array","items":{"$ref":"#/components/schemas/PvcAddedAttrValue"}},"PvcAddedAttrValue":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":63,"pattern":"^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$"},"value":{"type":"string"}}},"PvcItems":{"description":"Set of pvc persistent volume claims to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/PvcInstance"},"nullable":true},"HostPathsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathInstance"},"instances":{"$ref":"#/components/schemas/HostPathItems"}},"nullable":true,"type":"object"},"HostPathInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/HostPath"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"HostPath":{"properties":{"path":{"description":"Local path within the controller to which the host volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","default":true,"nullable":true},"mountPath":{"description":"The path that the host volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagation"}},"nullable":true,"type":"object"},"HostPathMountPropagation":{"description":"Share this volumes mount with other containers. If set to HostToContainer, this volume mount will receive all subsequent mounts that are mounted to this volume or any of its subdirectories. In case of multiple hostPath entries, this field should have the same value for all of them.","type":"string","enum":["None","HostToContainer"],"nullable":true},"HostPathItems":{"description":"Set of host paths to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/HostPathInstance"},"nullable":true},"NfssDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsInstance"},"instances":{"$ref":"#/components/schemas/NfsItems"}},"nullable":true,"type":"object"},"NfsInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Nfs"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Nfs":{"properties":{"path":{"description":"Path that is exported by the NFS server (mandatory). For more information, see [NFS](https://kubernetes.io/docs/concepts/storage/volumes#nfs).","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the NFS export to be mounted with read-only permissions.","type":"boolean","default":true,"nullable":true},"server":{"description":"The hostname or IP address of the NFS server. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"The path that the NFS volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"NfsItems":{"description":"Set of nfs volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/NfsInstance"},"nullable":true},"GitsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/GitInstance"},"instances":{"$ref":"#/components/schemas/GitItems"}},"nullable":true,"type":"object"},"GitInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/GitCommon"},{"$ref":"#/components/schemas/GitPassword"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"GitCommon":{"properties":{"repository":{"description":"URL to a remote Git repository. The content of this repository will be mapped to the container running the workload. (mandatory)","type":"string","minLength":1,"nullable":true},"branch":{"description":"Specific branch to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"revision":{"description":"Specific revision to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the Git repository will be mapped (mandatory).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitPassword":{"properties":{"passwordSecret":{"description":"Secret containing the credentials of the repository (needed for non public repository which requires authentication).","type":"string","minLength":1,"nullable":true},"secretKeyOfUser":{"description":"The key to use for loading the user name from the secret. The default is `User`.","type":"string","minLength":1,"nullable":true},"secretKeyOfPassword":{"description":"The key to use for loading the password from the secret. The default is `Password`.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitItems":{"description":"Set of git repositories to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/GitInstance"},"nullable":true},"ConfigMapsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapInstance"},"instances":{"$ref":"#/components/schemas/ConfigMapField"}},"nullable":true,"type":"object"},"ConfigMapInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/ConfigMap"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"ConfigMap":{"properties":{"configMap":{"description":"The name of the ConfigMap resource. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"Local path within the workload to which the ConfigMap will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ConfigMapField":{"description":"Set of config map volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/ConfigMapInstance"},"nullable":true},"SecretsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretInstance2"},"instances":{"$ref":"#/components/schemas/SecretItems1"}},"nullable":true,"type":"object"},"SecretInstance2":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Secret5"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Secret5":{"allOf":[{"$ref":"#/components/schemas/SecretFieldsUpdatable"},{"$ref":"#/components/schemas/SecretFieldsNonUpdatable"}]},"SecretFieldsUpdatable":{"properties":{"mountPath":{"description":"Local path within the workload to which the Secret will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretFieldsNonUpdatable":{"properties":{"secret":{"description":"The name of the Secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretItems1":{"description":"Set of secret volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/SecretInstance2"},"nullable":true},"EmptyDirsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirInstance"},"instances":{"$ref":"#/components/schemas/EmptyDirItems"}},"nullable":true,"type":"object"},"EmptyDirInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/EmptyDir"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"EmptyDir":{"properties":{"path":{"description":"Local path within the workload to which the EmptyDir volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"medium":{"description":"The type of storage medium for the volume. Use \"Memory\" for memory-backed storage, or leave empty for disk-backed storage.","type":"string","minLength":1,"nullable":true},"sizeLimit":{"description":"The total amount of local storage or memory required for the emptyDir volume. Specify using Kubernetes quantity format (e.g., 1G, 500Mi).","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true}},"nullable":true,"type":"object"},"EmptyDirItems":{"description":"A list of emptyDir volumes to mount in the workload.","type":"array","items":{"$ref":"#/components/schemas/EmptyDirInstance"},"nullable":true},"NonInferenceStorageFieldsDefaults":{"properties":{"s3":{"$ref":"#/components/schemas/S3sDefaults"}},"nullable":true,"type":"object"},"S3sDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Instance"},"instances":{"$ref":"#/components/schemas/S3Items"}},"nullable":true,"type":"object"},"S3Instance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/S3Common"},{"$ref":"#/components/schemas/S3AccessKey"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"S3Common":{"properties":{"bucket":{"description":"The name of the bucket. (mandatory)","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the S3 bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"url":{"description":"The url of the S3 service provider. The default is the URL of the Amazon AWS S3 service.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3AccessKey":{"properties":{"accessKeySecret":{"description":"Name of the secret containing credentials of the S3 bucket. Used for private S3 buckets.","type":"string","minLength":1,"nullable":true},"secretKeyOfAccessKeyId":{"description":"The key to use for loading the access key id from the secret. The default is `AccessKeyId`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true},"secretKeyOfSecretKey":{"description":"The key to use for loading the secret key from the secret. The default is `SecretKey`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3Items":{"description":"Set of s3 buckets to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/S3Instance"},"nullable":true},"NonInferenceFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridable"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridable":{"description":"Container non Inference overrideable fields. It adds properties which are not allowed for Inference containers","properties":{"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.","type":"boolean","nullable":true},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TrainingPolicyRulesV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFieldsRules"},{"$ref":"#/components/schemas/NodeRelatedFlatFieldsRules"},{"$ref":"#/components/schemas/CommonItemizedFieldsRules"},{"$ref":"#/components/schemas/AdvancedFlatFieldsRules"},{"$ref":"#/components/schemas/ConnectivityRules"},{"$ref":"#/components/schemas/TrainingFieldsRules"},{"$ref":"#/components/schemas/SecurityRules"},{"$ref":"#/components/schemas/ComputeRules"},{"$ref":"#/components/schemas/StorageRules"},{"$ref":"#/components/schemas/NonInferenceFlatFieldsRules"}]},"CommonFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridableRules"},{"$ref":"#/components/schemas/ContainerNonOverridableRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPodRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPGRules"}],"nullable":true,"type":"object"},"ContainerOverridableRules":{"description":"Container related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"command":{"$ref":"#/components/schemas/StringRules"},"args":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StringRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/StringRulesOptions"}],"nullable":true,"type":"object"},"StringRulesCommon":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true}}},"SourceOfRule":{"description":"This field is used by the system along with effective rules, in order to specify the org unit from which this effective rule has been derived. It should be left empty when sending apply policy requests.","required":["scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"isFallback":{"description":"source of this rule is the fallback policy","type":"boolean"}},"nullable":true,"type":"object"},"StringRulesOptions":{"properties":{"options":{"description":"Set of options that the value of the field must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"},"nullable":true}}},"StringOption":{"description":"One of the values that the field can be assigned to, when options police is applied on the field.","required":["value"],"properties":{"value":{"description":"The value that the field should hold","type":"string"},"displayed":{"description":"Textual description of the value. to be used by user interface applications.","type":"string","nullable":true}}},"ContainerNonOverridableRules":{"properties":{"image":{"$ref":"#/components/schemas/StringRules"},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicyRules"},"workingDir":{"$ref":"#/components/schemas/StringRules"},"createHomeDir":{"$ref":"#/components/schemas/BooleanRules"},"probes":{"$ref":"#/components/schemas/ProbesRules"}},"nullable":true,"type":"object"},"ImagePullPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ImagePullPolicyOptions"}],"nullable":true,"type":"object"},"ImagePullPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ImagePullPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"BooleanRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ProbesRules":{"properties":{"readiness":{"$ref":"#/components/schemas/ProbeRules"}},"nullable":true,"type":"object"},"ProbeRules":{"properties":{"initialDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"periodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"timeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"successThreshold":{"$ref":"#/components/schemas/IntegerRules"},"failureThreshold":{"$ref":"#/components/schemas/IntegerRules"},"handler":{"$ref":"#/components/schemas/ProbeHandlerRules"}},"nullable":true,"type":"object"},"IntegerRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"DefaultFromRule":{"properties":{"field":{"description":"The default of this field is taken from another field, with optional factor. The specified field must belong to the same workload section (compute, security, etc). For itemized field, the value of the field will be taken from the same instance.","type":"string","nullable":true},"factor":{"description":"Multiple the value of the fromField by this factor to get the value for this field For example, if factor is 2 and defaultFrom field has value of 8, the calculated default will be determined to be 16.","type":"number","format":"double","nullable":true,"default":1}},"nullable":true,"type":"object"},"ProbeHandlerRules":{"properties":{"httpGet":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"port":{"$ref":"#/components/schemas/IntegerRules"},"host":{"$ref":"#/components/schemas/StringRules"},"scheme":{"$ref":"#/components/schemas/StringRules"}}}},"nullable":true,"type":"object"},"ResourcesFlatFieldsPerPodRules":{"description":"Resource related parameters.","properties":{"nodeType":{"$ref":"#/components/schemas/StringRules"},"nodeAffinityRequired":{"$ref":"#/components/schemas/ArbitraryRules"},"podAffinity":{"$ref":"#/components/schemas/PodAffinityRules"}},"nullable":true,"type":"object"},"ArbitraryRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this arbitrary object is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"PodAffinityRules":{"properties":{"type":{"$ref":"#/components/schemas/PodAffinityTypeRules"},"key":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PodAffinityTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PodAffinityTypeOptions"}],"nullable":true,"type":"object"},"PodAffinityTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PodAffinityType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"type":"object"},"ResourcesFlatFieldsPerPGRules":{"description":"Resource related parameters.","properties":{"category":{"$ref":"#/components/schemas/StringRules"},"priorityClass":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NodeRelatedFlatFieldsRules":{"description":"Node pools related parameters.","properties":{"nodePools":{"$ref":"#/components/schemas/ArrayRules"}},"nullable":true,"type":"object"},"ArrayRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this array is mandatory. Mandatory array must include at least one item. default to false.","type":"boolean","nullable":true},"options":{"description":"Set of options that the value of each item of the array must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"}},"canEdit":{"description":"Whether the value of the array, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"CommonItemizedFieldsRules":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldRules"},{"$ref":"#/components/schemas/AdvancedItemizedRules"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldRules":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"InstancesRules":{"properties":{"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ItemRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canAdd":{"description":"Whether it is permitted to add items. Default to true.","type":"boolean","nullable":true},"locked":{"description":"Set of keys for items that are \"locked\", i.e. cannot be removed or deleted.","type":"array","items":{"type":"string"}}},"nullable":true,"type":"object"},"AdvancedItemizedRules":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldRules"},{"$ref":"#/components/schemas/LabelsFieldRules"},{"$ref":"#/components/schemas/ImagePullSecretsFieldRules"},{"$ref":"#/components/schemas/TolerationsFieldRules"}],"type":"object","nullable":true},"AnnotationsFieldRules":{"properties":{"annotations":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"LabelsFieldRules":{"properties":{"labels":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"ImagePullSecretsFieldRules":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ImagePullSecretsRulesAttributes"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRulesAttributes":{"description":"Rules for the attributes of imagePullSecrets","properties":{"name":{"$ref":"#/components/schemas/StringRules"},"userCredentials":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationsFieldRules":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsRules"}},"nullable":true,"type":"object"},"TolerationsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/TolerationRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"TolerationRules":{"description":"Toleration details.","properties":{"operator":{"$ref":"#/components/schemas/TolerationOperatorRules"},"key":{"$ref":"#/components/schemas/StringRules"},"value":{"$ref":"#/components/schemas/StringRules"},"effect":{"$ref":"#/components/schemas/TolerationEffectRules"},"seconds":{"$ref":"#/components/schemas/IntegerRules"},"exclude":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationOperatorRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationOperatorOptions"}],"nullable":true,"type":"object"},"TolerationOperatorOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationOperator"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"TolerationEffectRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationEffectOptions"}],"nullable":true,"type":"object"},"TolerationEffectOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationEffect"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"AdvancedFlatFieldsRules":{"properties":{"terminateAfterPreemption":{"$ref":"#/components/schemas/BooleanRules"},"autoDeletionTimeAfterCompletionSeconds":{"$ref":"#/components/schemas/IntegerRules"},"terminationGracePeriodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"backoffLimit":{"$ref":"#/components/schemas/IntegerRules"},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicyRule"}},"nullable":true,"type":"object"},"RestartPolicyRule":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/RestartPolicyOptions"}],"nullable":true,"type":"object"},"RestartPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for restartPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/RestartPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ConnectivityRules":{"properties":{"ports":{"$ref":"#/components/schemas/PortsRules"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsRules"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsRules"}},"nullable":true,"type":"object"},"PortsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PortRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PortRules":{"description":"Rules for port attributes","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"serviceType":{"$ref":"#/components/schemas/PortServiceTypeRules"},"customExternalPort":{"$ref":"#/components/schemas/BooleanRules"},"external":{"$ref":"#/components/schemas/IntegerRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PortServiceTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PortServiceTypeOptions"}],"nullable":true,"type":"object"},"PortServiceTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PortServiceType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ExposedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExposedUrlRules":{"description":"Rules for the attributed of exposedUrls","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"customUrl":{"$ref":"#/components/schemas/BooleanRules"},"url":{"$ref":"#/components/schemas/StringRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"RelatedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"RelatedUrlRules":{"description":"Rules for the attributes of relatedUrls","properties":{"url":{"$ref":"#/components/schemas/StringRules"},"type":{"$ref":"#/components/schemas/StringRules"},"name":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"TrainingFieldsRules":{"properties":{"completions":{"$ref":"#/components/schemas/IntegerRules"},"parallelism":{"$ref":"#/components/schemas/IntegerRules"}},"nullable":true,"type":"object"},"SecurityRules":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFieldsRules"}},"nullable":true,"type":"object"},"SecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFieldsRules"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFieldsRules"}],"nullable":true,"type":"object"},"CommonSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridableRules"},{"$ref":"#/components/schemas/CommonSecurityOverridableRules"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridableRules":{"properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSourceRules"},"capabilities":{"$ref":"#/components/schemas/ArrayRules"},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileTypeRules"},"runAsNonRoot":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyRootFilesystem":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"UidGidSourceRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/UidGidSourceOptions"}],"nullable":true,"type":"object"},"UidGidSourceOptions":{"properties":{"options":{"description":"Limit the permitted values for uidGidSource to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/UidGidSource"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"SeccompProfileTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/SeccompProfileTypeOptions"}],"nullable":true,"type":"object"},"SeccompProfileTypeOptions":{"properties":{"options":{"description":"Limit the permitted values for secompProfileType to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/SeccompProfileType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"CommonSecurityOverridableRules":{"description":"Security related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"runAsUid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"runAsGid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"supplementalGroups":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"IntegerRulesOptional":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridableRules"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridableRules":{"properties":{"allowPrivilegeEscalation":{"$ref":"#/components/schemas/BooleanRules"},"hostIpc":{"$ref":"#/components/schemas/BooleanRules"},"hostNetwork":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ComputeRules":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsRules"}},"nullable":true,"type":"object"},"ComputeFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFieldsRules"},{"$ref":"#/components/schemas/ComputeItemizedFieldsRules"}],"nullable":true,"type":"object"},"ComputeFlatFieldsRules":{"properties":{"cpuCoreRequest":{"$ref":"#/components/schemas/NumberRules"},"cpuCoreLimit":{"$ref":"#/components/schemas/NumberRules"},"cpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"cpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"},"largeShmRequest":{"$ref":"#/components/schemas/BooleanRules"},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestRules"},"migProfile":{"$ref":"#/components/schemas/MigProfileRules","deprecated":true},"gpuDevicesRequest":{"$ref":"#/components/schemas/IntegerRules"},"gpuPortionRequest":{"$ref":"#/components/schemas/NumberRules"},"gpuPortionLimit":{"$ref":"#/components/schemas/NumberRules"},"gpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"gpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"}},"nullable":true,"type":"object"},"NumberRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"number","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"number","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=3, step=0.25 implies that the values the field can hold are 2, 2.25, 2.5 and 3.","type":"number","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"QuantityRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"max":{"description":"The maximum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"GpuRequestRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/GpuRequestOptions"}],"nullable":true,"type":"object"},"GpuRequestOptions":{"properties":{"options":{"description":"Limit the permitted values for gpuRequest to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/GpuRequestType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"MigProfileRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/MigProfileOptions"}],"nullable":true,"type":"object"},"MigProfileOptions":{"properties":{"options":{"description":"Limit the permitted values for migProfile to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/MigProfile"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object","deprecated":true},"ComputeItemizedFieldsRules":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesRules"}},"nullable":true,"type":"object"},"ExtendedResourcesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResourceRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExtendedResourceRules":{"description":"Rules for the attributes of extendedResources","properties":{"quantity":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StorageRules":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsRules"}},"nullable":true,"type":"object"},"StorageFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsRules"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsRules"}],"nullable":true,"type":"object"},"CommonStorageFieldsRules":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesRules"},"pvc":{"$ref":"#/components/schemas/PvcsRules"},"hostPath":{"$ref":"#/components/schemas/HostPathsRules"},"nfs":{"$ref":"#/components/schemas/NfssRules"},"git":{"$ref":"#/components/schemas/GitsRules"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsRules"},"secretVolume":{"$ref":"#/components/schemas/SecretsRules"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsRules"}},"nullable":true,"type":"object"},"DataVolumesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"DataVolumeRules":{"properties":{"id":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PvcsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PvcRules":{"properties":{"claimName":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"claimInfo":{"$ref":"#/components/schemas/ClaimInfoRules"}},"nullable":true,"type":"object"},"ClaimInfoRules":{"properties":{"size":{"$ref":"#/components/schemas/StringRules"},"storageClass":{"$ref":"#/components/schemas/StringRules"},"accessModes":{"$ref":"#/components/schemas/PvcAccessModesRules"}},"nullable":true,"type":"object"},"PvcAccessModesRules":{"description":"Rules for access mode(s) for a newly created PVC.","properties":{"readWriteOnce":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyMany":{"$ref":"#/components/schemas/BooleanRules"},"readWriteMany":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"HostPathsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"HostPathRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagationRules"}},"nullable":true,"type":"object"},"HostPathMountPropagationRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/HostPathMountPropagationOptions"}],"nullable":true,"type":"object"},"HostPathMountPropagationOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/HostPathMountPropagation"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}}},"NfssRules":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"NfsRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"server":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"GitsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/GitRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"GitRules":{"properties":{"repository":{"$ref":"#/components/schemas/StringRules"},"branch":{"$ref":"#/components/schemas/StringRules"},"revision":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ConfigMapsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ConfigMapRules":{"properties":{"configMap":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"subPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"SecretRules":{"properties":{"secret":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"EmptyDirsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"EmptyDirRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"medium":{"$ref":"#/components/schemas/StringRules"},"sizeLimit":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceStorageFieldsRules":{"properties":{"s3":{"$ref":"#/components/schemas/S3sRules"}},"nullable":true,"type":"object"},"S3sRules":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Rules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"S3Rules":{"properties":{"bucket":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"url":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridableRules"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridableRules":{"properties":{"tty":{"$ref":"#/components/schemas/BooleanRules"},"stdin":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ImposedAssets":{"description":"a list of datasource assets to import into the policy. these datasources will be included in any workload that will be created in the scope of the policy.","type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"FieldsToReset":{"description":"set of fields in jsonpath format that is requested to clear their policy (default and rules)","type":"array","items":{"type":"string"}},"TrainingPolicyV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyMeta"},"policy":{"$ref":"#/components/schemas/TrainingPolicyDefaultsAndRulesV2"},"effective":{"$ref":"#/components/schemas/TrainingPolicyDefaultsAndRulesV2"},"effectiveUpdatedAt":{"$ref":"#/components/schemas/Timestamp"}},"nullable":true,"type":"object"},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"Timestamp":{"description":"The time at which an event occurred. e.g. the time an effective policy has been updated","type":"string","minLength":1,"format":"date-time"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy/trainings":{"patch":{"summary":"Update a training policy.","description":"Use to apply changes to training policy for a given organizational unit.","operationId":"update_training_policy_v2","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/ValidateOnly"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingPolicyChangeRequestV2"}}}},"responses":{"200":{"description":"Policy applied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingPolicyV2"}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Get a workspace policy.

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

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"PolicyScope":{"name":"scope","in":"query","required":true,"description":"The scope that the policy relates to.","schema":{"type":"string","enum":["tenant","cluster","department","project"]}},"FilterByDepartment":{"name":"departmentId","in":"query","description":"Filter using the department id.","required":false,"schema":{"type":"string"}},"FilterByProject":{"name":"projectId","in":"query","description":"project id to filter by","required":false,"schema":{"type":"string"}},"FilterByCluster":{"name":"clusterId","in":"query","description":"Filter using the Universally Unique Identifier (UUID) of the cluster.","required":false,"schema":{"type":"string","format":"uuid"}}},"schemas":{"WorkspacePolicyV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyMeta"},"policy":{"$ref":"#/components/schemas/WorkspacePolicyDefaultsAndRulesV2"},"effective":{"$ref":"#/components/schemas/WorkspacePolicyDefaultsAndRulesV2"},"effectiveUpdatedAt":{"$ref":"#/components/schemas/Timestamp"}},"nullable":true,"type":"object"},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"WorkspacePolicyDefaultsAndRulesV2":{"properties":{"defaults":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFields"},{"$ref":"#/components/schemas/NodeRelatedFlatFields"},{"$ref":"#/components/schemas/CommonItemizedDefaults"},{"$ref":"#/components/schemas/AdvancedFlatFields"},{"$ref":"#/components/schemas/ConnectivityDefaults"},{"$ref":"#/components/schemas/Security"},{"$ref":"#/components/schemas/ComputeDefaults"},{"$ref":"#/components/schemas/StorageDefaults"},{"$ref":"#/components/schemas/NonInferenceFlatFields"}],"nullable":true,"type":"object"},"rules":{"allOf":[{"$ref":"#/components/schemas/WorkspacePolicyRulesV2"}],"nullable":true,"type":"object"},"imposedAssets":{"$ref":"#/components/schemas/ImposedAssets"},"status":{"$ref":"#/components/schemas/PolicyValidationStatus"}},"nullable":true,"type":"object"},"CommonFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridable"},{"$ref":"#/components/schemas/ContainerNonOverridable"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPod"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPG"}],"nullable":true,"type":"object"},"ContainerOverridable":{"description":"Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"command":{"description":"A command to the server as the entry point of the container running the workload.","type":"string","minLength":1,"nullable":true},"args":{"description":"Arguments to the command that the container running the workload executes.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ContainerNonOverridable":{"description":"Container non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"image":{"description":"Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a workload.","type":"string","minLength":1,"nullable":true},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicy"},"workingDir":{"description":"Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.","type":"string","minLength":1,"nullable":true},"createHomeDir":{"description":"When set to `true`, creates a home directory for the container.","type":"boolean","nullable":true},"probes":{"$ref":"#/components/schemas/Probes"}},"nullable":true,"type":"object"},"ImagePullPolicy":{"description":"Image pull policy. Defaults to `Always` if `:latest` tag is specified, otherwise it is `IfNotPresent`.","type":"string","minLength":1,"enum":["Always","Never","IfNotPresent"],"nullable":true},"Probes":{"description":"Probes are used to determine if the container is healthy and ready to accept traffic.","type":"object","properties":{"readiness":{"$ref":"#/components/schemas/Probe"}},"nullable":true},"Probe":{"type":"object","properties":{"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness or readiness probes are initiated.","type":"integer","format":"int32","minimum":0,"nullable":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe.","type":"integer","format":"int32","minimum":1,"nullable":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out.","type":"integer","format":"int32","minimum":1,"nullable":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed.","type":"integer","format":"int32","minimum":1,"nullable":true},"failureThreshold":{"description":"When a probe fails, the number of times to try before giving up.","type":"integer","format":"int32","minimum":1,"nullable":true},"handler":{"$ref":"#/components/schemas/ProbeHandler"}},"nullable":true},"ProbeHandler":{"description":"The action taken to determine the health of the container. (mandatory)","type":"object","properties":{"httpGet":{"description":"An action based on HTTP Get requests.","type":"object","properties":{"path":{"description":"Path to access on the HTTP server, defaults to /.","type":"string","pattern":"^(\\x2F[a-zA-Z0-9\\-_.\\x2F]*)?$","nullable":true},"port":{"description":"Number of the port to access on the container.","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"host":{"description":"Host name to connect to, defaults to the pod IP.","type":"string","format":"hostname","nullable":true},"scheme":{"$ref":"#/components/schemas/ProbeHandlerScheme"}}}},"nullable":true},"ProbeHandlerScheme":{"description":"Scheme to use for connecting to the host, defaults to HTTP.","type":"string","enum":["HTTP","HTTPS"],"nullable":true},"ResourcesFlatFieldsPerPod":{"description":"Resource parameters.","properties":{"nodeType":{"description":"Nodes (machines), or a group of nodes on which the workload will run. To use this feature, your Administrator will need to label nodes. For more information, see [Group Nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/researcher-setup/limit-to-node-group). When using this flag with with Project-based affinity, it refines the list of allowable node groups set in the Project. For more information, see [Projects](https://docshub.run.ai/guides/platform-management/aiinitiatives/organization/projects).","type":"string","minLength":1,"nullable":true},"nodeAffinityRequired":{"$ref":"#/components/schemas/NodeAffinityRequired"},"podAffinity":{"$ref":"#/components/schemas/PodAffinity"}},"nullable":true,"type":"object"},"NodeAffinityRequired":{"type":"object","description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","properties":{"nodeSelectorTerms":{"description":"A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/components/schemas/NodeSelectorTerm"}}},"nullable":true},"NodeSelectorTerm":{"type":"object","description":"A null or empty node selector term matches no objects. The requirements of them are ANDed.","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"$ref":"#/components/schemas/MatchExpression"}}},"nullable":true},"MatchExpression":{"type":"object","description":"A selector that contains values, a key, and an operator that relates the key and values.","properties":{"key":{"description":"The label key that the selector applies to (mandatory).","type":"string"},"operator":{"$ref":"#/components/schemas/MatchExpressionOperator"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.","type":"array","items":{"type":"string"}}},"required":["key","operator"],"nullable":true},"MatchExpressionOperator":{"description":"Represents a key's relationship to a set of values (mandatory).","type":"string","enum":["In","NotIn","Exists","DoesNotExist","Gt","Lt"]},"PodAffinity":{"description":"Pod affinity scheduling rules (e.g. co-locate this workload in the same node, zone, etc. as some other workloads).","type":"object","properties":{"type":{"$ref":"#/components/schemas/PodAffinityType"},"key":{"description":"The label key to use. (mandatory)","type":"string","nullable":true}},"nullable":true},"PodAffinityType":{"description":"The affinity type, required or preferred. (mandatory)","type":"string","enum":["Required","Preferred"],"nullable":true},"ResourcesFlatFieldsPerPG":{"description":"Resource parameters.","properties":{"category":{"$ref":"#/components/schemas/Category"},"priorityClass":{"$ref":"#/components/schemas/PriorityClass"}},"nullable":true,"type":"object"},"Category":{"description":"Specify the workload category assigned to the workload. Categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.","type":"string","nullable":true},"PriorityClass":{"description":"Specifies the priority class for the workload.  Valid values are: very-low, low, medium-low, medium, medium-high, high, very-high.  You can use this parameter to adjust the workload's scheduling behavior.  Each workload type has a default priority.  To view the default priority for each workload type, use the GET /workload-types endpoint.","type":"string","nullable":true},"NodeRelatedFlatFields":{"description":"Node related parameters.","properties":{"nodePools":{"description":"A prioritized list of node pools for the scheduler to run the workload on. The scheduler will always try to use the first node pool before moving to the next one if the first is not available.","type":"array","items":{"type":"string"},"nullable":true}},"nullable":true,"type":"object"},"CommonItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldDefaults"},{"$ref":"#/components/schemas/AdvancedItemizedDefaults"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldDefaults":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/EnvironmentVariablesDefaults"}},"nullable":true,"type":"object"},"EnvironmentVariablesDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/EnvironmentVariables"}},"nullable":true,"type":"object"},"EnvironmentVariables":{"description":"Set of environment variables to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"nullable":true},"EnvironmentVariable":{"description":"Details of an environment variable which is populated into the container.","properties":{"name":{"description":"The name of the environment variable. (mandatory)","type":"string","minLength":1,"nullable":true},"value":{"description":"The value of the environment variable. (mutually exclusive with secret, credential, configMap and podFieldRef)","type":"string","nullable":true},"secret":{"$ref":"#/components/schemas/EnvironmentVariableSecret"},"configMap":{"$ref":"#/components/schemas/EnvironmentVariableConfigMap"},"podFieldRef":{"$ref":"#/components/schemas/EnvironmentVariablePodFieldReference"},"exclude":{"description":"Use 'true' in case the environment variable is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true},"description":{"description":"Description of the environment variable.","type":"string","nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableSecret":{"description":"Details of the secret and key use to populate the environment variable","properties":{"name":{"description":"The name of the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableConfigMap":{"description":"Details of the configMap and key use to populate the environment variable","properties":{"name":{"description":"The name of the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariablePodFieldReference":{"description":"Details of the field-reference and key use to populate the environment variable","properties":{"path":{"description":"The field path resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"AdvancedItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldDefaults"},{"$ref":"#/components/schemas/LabelsFieldDefaults"},{"$ref":"#/components/schemas/ImagePullSecretsFieldDefaults"},{"$ref":"#/components/schemas/TolerationsFieldDefaults"}],"type":"object","nullable":true},"AnnotationsFieldDefaults":{"properties":{"annotations":{"$ref":"#/components/schemas/AnnotationsDefaults"}},"nullable":true,"type":"object"},"AnnotationsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Annotations"}},"nullable":true,"type":"object"},"Annotations":{"description":"Set of annotations to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Annotation"},"nullable":true},"Annotation":{"description":"Annotation details to be populated into the container.","properties":{"name":{"description":"The name of the annotation (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the annotation.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the annotation is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"LabelsFieldDefaults":{"properties":{"labels":{"$ref":"#/components/schemas/LabelsDefaults"}},"nullable":true,"type":"object"},"LabelsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Labels"}},"nullable":true,"type":"object"},"Labels":{"description":"Set of labels to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Label"},"nullable":true},"Label":{"description":"Label details to be populated into the container.","properties":{"name":{"description":"The name of the label (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the label.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ImagePullSecretsFieldDefaults":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsDefaults"}},"nullable":true,"type":"object"},"ImagePullSecretsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/ImagePullSecrets"}},"nullable":true,"type":"object"},"ImagePullSecrets":{"description":"A list of references to Kubernetes secrets in the same namespace used for pulling container images.","type":"array","items":{"$ref":"#/components/schemas/ImagePullSecret"},"nullable":true},"ImagePullSecret":{"description":"A reference to a secret in the same namespace used to pull container images.","properties":{"name":{"type":"string","description":"The name of the Kubernetes secret containing the image pull credentials."},"userCredential":{"type":"boolean","description":"Indicates whether the secret is a user credential. Set to true if the secret was created by the user and is only accessible by them.","nullable":true},"exclude":{"description":"Use 'true' in case the secret is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"TolerationsFieldDefaults":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsDefaults"}},"nullable":true,"type":"object"},"TolerationsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Toleration"},"instances":{"$ref":"#/components/schemas/Tolerations"}},"nullable":true,"type":"object"},"Toleration":{"description":"Toleration details.","properties":{"name":{"description":"The name of the toleration.","type":"string","minLength":1,"nullable":true},"operator":{"$ref":"#/components/schemas/TolerationOperator"},"key":{"description":"The taint key that the toleration applies to. (mandatory)","type":"string","nullable":true},"value":{"description":"The taint value the toleration matches to. Mandatory if operator is Exists, forbidden otherwise.","type":"string","nullable":true},"effect":{"$ref":"#/components/schemas/TolerationEffect"},"seconds":{"description":"The period of time the toleration tolerates the taint. Valid only if effect is NoExecute. taint.","type":"integer","minimum":1,"nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TolerationOperator":{"description":"A key's relationship to the value. Equal uses key and value. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. (mandatory)","type":"string","enum":["Equal","Exists"],"nullable":true},"TolerationEffect":{"description":"The taint effect to match. (mandatory)","type":"string","enum":["NoSchedule","NoExecute","PreferNoSchedule","Any"],"nullable":true},"Tolerations":{"description":"Set of tolerations to apply to the workload.","type":"array","items":{"$ref":"#/components/schemas/Toleration"},"nullable":true},"AdvancedFlatFields":{"properties":{"terminateAfterPreemption":{"description":"Indicates if the job should be terminated by the system after it has been preempted.","type":"boolean","nullable":true},"autoDeletionTimeAfterCompletionSeconds":{"description":"Specifies the duration after which a finished workload (completed or failed) will be automatically deleted. The default is 30 days.","format":"int64","type":"integer","nullable":true},"terminationGracePeriodSeconds":{"description":"Duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down).","format":"int64","type":"integer","minimum":0,"nullable":true},"backoffLimit":{"description":"Specifies the number of retries before marking a workload as failed (not applicable to Inference workloads). The default value is 6.","format":"int64","type":"integer","nullable":true},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicy"}},"nullable":true,"type":"object"},"RestartPolicy":{"description":"Specify the restart policy of the workload pods. Default is empty, which is determine by the framework default","type":"string","minLength":1,"enum":["Always","Never","OnFailure"],"nullable":true},"ConnectivityDefaults":{"properties":{"ports":{"$ref":"#/components/schemas/PortsDefaults"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsDefaults"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsDefaults"}},"nullable":true,"type":"object"},"PortsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Port"},"instances":{"$ref":"#/components/schemas/Ports"}},"nullable":true,"type":"object"},"Port":{"description":"A port for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"serviceType":{"$ref":"#/components/schemas/PortServiceType"},"external":{"description":"The external port which allows a connection to the container port. If not specified, the port will be auto-generated by the system..","type":"integer","format":"int32","nullable":true},"toolType":{"description":"The tool type that runs on this port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this port.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PortServiceType":{"description":"The service type of the port (mandatory).","type":"string","enum":["LoadBalancer","NodePort","ClusterIP"],"nullable":true},"Ports":{"description":"Set of container ports that the workload exposes.","type":"array","items":{"$ref":"#/components/schemas/Port"},"nullable":true},"ExposedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrl"},"instances":{"$ref":"#/components/schemas/ExposedUrls"}},"nullable":true,"type":"object"},"ExposedUrl":{"description":"A URL for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","nullable":true},"url":{"description":"The URL for connecting to the container port. If not specified, the URL will be auto-generated by the system..","type":"string","nullable":true},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"toolType":{"description":"The tool type that runs on this container port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this url.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the instance is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExposedUrls":{"description":"Set of container ports that the workload exposes via URLs.","type":"array","items":{"$ref":"#/components/schemas/ExposedUrl"},"nullable":true},"RelatedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrl"},"instances":{"$ref":"#/components/schemas/RelatedUrls"}},"nullable":true,"type":"object"},"RelatedUrl":{"description":"A URL that is related to the workload. For example, a URL to an external server providing statistics or logging about the workload.","properties":{"url":{"description":"The URL for connecting an external service related to the workload. (mandatory)","type":"string","nullable":true},"type":{"description":"The type of service that the url provides. For example, wandb (Weights & Biases). (mandatory)","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"RelatedUrls":{"description":"Set of URLs that are related to the workload.","type":"array","items":{"$ref":"#/components/schemas/RelatedUrl"},"nullable":true},"Security":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFields"}},"nullable":true,"type":"object"},"SecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFields"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFields"}],"nullable":true,"type":"object"},"CommonSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridable"},{"$ref":"#/components/schemas/CommonSecurityOverridable"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridable":{"description":"Security non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSource"},"capabilities":{"description":"Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.","type":"array","items":{"$ref":"#/components/schemas/Capability"},"nullable":true},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileType"},"runAsNonRoot":{"description":"Force the container to run as a non-root user.","type":"boolean","nullable":true},"readOnlyRootFilesystem":{"description":"If true, mounts the container's root filesystem as read-only.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"UidGidSource":{"description":"Indicate the way to determine the user and group ids of the container. The options are a. `fromTheImage` - user and group ids are determined by the docker image that the container runs. this is the default option. b. `custom` - user and group ids can be specified in the environment asset and/or the workload creation request. c. `idpToken` - user and group ids are determined according to the identity provider (idp) access token. This option is intended for internal use of the environment UI form. For more information, see [User Identity](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/runai-setup/config/non-root-containers/).","type":"string","enum":["fromTheImage","fromIdpToken","custom"],"nullable":true},"Capability":{"type":"string","enum":["AUDIT_CONTROL","AUDIT_READ","AUDIT_WRITE","BLOCK_SUSPEND","CHOWN","DAC_OVERRIDE","DAC_READ_SEARCH","FOWNER","FSETID","IPC_LOCK","IPC_OWNER","KILL","LEASE","LINUX_IMMUTABLE","MAC_ADMIN","MAC_OVERRIDE","MKNOD","NET_ADMIN","NET_BIND_SERVICE","NET_BROADCAST","NET_RAW","SETGID","SETFCAP","SETPCAP","SETUID","SYS_ADMIN","SYS_BOOT","SYS_CHROOT","SYS_MODULE","SYS_NICE","SYS_PACCT","SYS_PTRACE","SYS_RAWIO","SYS_RESOURCE","SYS_TIME","SYS_TTY_CONFIG","SYSLOG","WAKE_ALARM"]},"SeccompProfileType":{"description":"Indicates which kind of seccomp profile will be applied to the container. The options are a. `RuntimeDefault` - the container runtime default profile should be used. b. `Unconfined` - no profile should be applied. c. `Localhost` is not yet supported by Run:ai.","type":"string","enum":["RuntimeDefault","Unconfined","Localhost"],"nullable":true},"CommonSecurityOverridable":{"description":"Security overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"runAsUid":{"description":"The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsUid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"runAsGid":{"description":"The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsGid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"supplementalGroups":{"description":"Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled. Using an empty string implies reverting the supplementary groups of the image.","type":"string","nullable":true}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridable"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridable":{"description":"Security related fields. When used in assets context, those are environment asset fields that cannot be override in the submit workload request.","properties":{"allowPrivilegeEscalation":{"description":"Allow the container running the workload and all launched processes to gain additional privileges after the workload starts. For more information consult the User Identity in Container guide at https://docs.run.ai/admin/runai-setup/config/non-root-containers/","type":"boolean","nullable":true},"hostIpc":{"description":"Whether to enable host IPC. Defaults to false.","type":"boolean","nullable":true},"hostNetwork":{"description":"Whether to enable host networking. Default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ComputeDefaults":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsDefaults"}},"nullable":true,"type":"object"},"ComputeFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFields"},{"$ref":"#/components/schemas/ComputeItemizedFieldsDefaults"}],"nullable":true,"type":"object"},"ComputeFlatFields":{"properties":{"gpuDevicesRequest":{"description":"Requested number of GPU devices. Currently if more than one device is requested, it is not possible to provide values for gpuMemory, gpuPortion or migProfile [deprecated].","type":"integer","format":"int32","nullable":true,"minimum":0},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestType"},"gpuPortionRequest":{"description":"Required if and only if gpuRequestType is portion. States the portion of the GPU to allocate for the created workload, per GPU device, between 0 and 1. The default is no allocated GPUs.","type":"number","format":"double","nullable":true,"minimum":0},"gpuPortionLimit":{"description":"Limitations on the portion consumed by the workload, per GPU device. The system guarantees The gpuPotionLimit must be no less than the gpuPortionRequest.","type":"number","format":"double","nullable":true,"minimum":0},"gpuMemoryRequest":{"description":"Required if and only if gpuRequestType is memory. States the GPU memory to allocate for the created workload, per GPU device. Note that the workload will not be scheduled unless the system can guarantee this amount of GPU memory to the workload.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"gpuMemoryLimit":{"description":"Limitation on the memory consumed by the workload, per GPU device. The system guarantees The gpuMemoryLimit must be no less than gpuMemoryRequest.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"migProfile":{"$ref":"#/components/schemas/MigProfile","depracted":true},"cpuCoreRequest":{"description":"CPU units to allocate for the created workload (0.5, 1, .etc). The workload will receive at least this amount of CPU. Note that the workload will not be scheduled unless the system can guarantee this amount of CPUs to the workload.","format":"double","type":"number","nullable":true,"minimum":0},"cpuCoreLimit":{"description":"Limitations on the number of CPUs consumed by the workload (0.5, 1, .etc). The system guarantees that this workload will not be able to consume more than this amount of CPUs.","format":"double","type":"number","nullable":true,"minimum":0},"cpuMemoryRequest":{"description":"The amount of CPU memory to allocate for this workload (1G, 20M, .etc). The workload will receive at least this amount of memory. Note that the workload will not be scheduled unless the system can guarantee this amount of memory to the workload","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"cpuMemoryLimit":{"description":"Limitations on the CPU memory to allocate for this workload (1G, 20M, .etc). The system guarantees that this workload will not be able to consume more than this amount of memory. The workload will receive an error when trying to allocate more memory than this limit.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"largeShmRequest":{"description":"A large /dev/shm device to mount into a container running the created workload. An shm is a shared file system mounted on RAM.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"GpuRequestType":{"description":"Sets the unit type for GPU resources requests. Stated in terms of portion, memory or  mig profile [deprecated]. Sets the unit type for other GPU request fields. If `gpuDevicesRequest > 1`, only `portion` is supported. If `gpuDeviceRequest = 1`, the request type can be stated as `portion`, `memory` or `migProfile` [deprecated].","type":"string","minLength":1,"enum":["portion","memory","migProfile"],"nullable":true},"MigProfile":{"description":"Required only if `gpuRequestType` is `migProfile`. This states the memory profile to be used for the workload running NVIDIA Multi-Instance GPU (MIG) technology.","type":"string","deprecated":true,"minLength":1,"enum":["1g.5gb","1g.10gb","2g.10gb","2g.20gb","3g.20gb","3g.40gb","4g.20gb","4g.40gb","7g.40gb","7g.80gb"],"nullable":true},"ComputeItemizedFieldsDefaults":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesDefaults"}},"nullable":true,"type":"object"},"ExtendedResourcesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResource"},"instances":{"$ref":"#/components/schemas/ExtendedResources"}},"nullable":true,"type":"object"},"ExtendedResource":{"description":"Quantity of an extended resource.","properties":{"resource":{"description":"The name of the extended resource (mandatory)","type":"string","minLength":1,"nullable":true},"quantity":{"description":"The requested quantity for the resource.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the extended resource is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExtendedResources":{"description":"Extended resources and their quantity.","type":"array","items":{"$ref":"#/components/schemas/ExtendedResource"},"nullable":true},"StorageDefaults":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsDefaults"}},"nullable":true,"type":"object"},"StorageFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsDefaults"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsDefaults"}],"nullable":true,"type":"object"},"CommonStorageFieldsDefaults":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesDefaults"},"pvc":{"$ref":"#/components/schemas/PvcsDefaults"},"hostPath":{"$ref":"#/components/schemas/HostPathsDefaults"},"nfs":{"$ref":"#/components/schemas/NfssDefaults"},"git":{"$ref":"#/components/schemas/GitsDefaults"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsDefaults"},"secretVolume":{"$ref":"#/components/schemas/SecretsDefaults"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsDefaults"}},"nullable":true,"type":"object"},"DataVolumesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeInstance"},"instances":{"$ref":"#/components/schemas/DataVolumeItems"}},"nullable":true,"type":"object"},"DataVolumeInstance":{"allOf":[{"$ref":"#/components/schemas/DataVolume"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"DataVolume":{"properties":{"id":{"description":"The unique identifier of the data volume. (mandatory)","type":"string","format":"uuid","nullable":true},"mountPath":{"description":"The path where the data volume will be mounted. (mandatory)","type":"string","nullable":true}},"nullable":true,"type":"object"},"ExcludeField":{"properties":{"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"type":"object","nullable":true},"DataVolumeItems":{"description":"Set of data volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/DataVolumeInstance"},"nullable":true},"PvcsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcInstance"},"instances":{"$ref":"#/components/schemas/PvcItems"}},"nullable":true,"type":"object"},"PvcInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Pvc"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"StorageInstanceName":{"properties":{"name":{"description":"unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"Pvc":{"allOf":[{"$ref":"#/components/schemas/PvcFieldsUpdatable"},{"$ref":"#/components/schemas/PvcFieldsNonUpdatable"}]},"PvcFieldsUpdatable":{"properties":{"path":{"description":"Local path within the workload to which the PVC bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"PvcFieldsNonUpdatable":{"properties":{"existingPvc":{"description":"Verify existing PVC. PVC is assumed to exist when set to `true`. If set to `false`, the PVC will be created, if it does not exist.","type":"boolean","default":false,"nullable":true},"claimName":{"description":"Name for the PVC. Allow referencing it across workloads. If not provided, a name based on the workload name and scope will be auto-generated.","type":"string","minLength":1,"maxLength":63,"nullable":true},"readOnly":{"description":"Permit only read access to PVC.","type":"boolean","default":false,"nullable":true},"ephemeral":{"description":"Use `true` to set PVC to ephemeral. If set to `true`, the PVC will be deleted when the workload is stopped. Not supported for inference workloads.","type":"boolean","default":false,"nullable":true},"claimInfo":{"$ref":"#/components/schemas/ClaimInfo"},"dataSharing":{"description":"use `true` to share the PVC data to all projects under the selected scope.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"ClaimInfo":{"description":"Claim information for the newly created PVC. The information should not be provided when attempting to use existing PVC.","properties":{"size":{"$ref":"#/components/schemas/PvcClaimSize"},"storageClass":{"description":"Storage class name to associate with the PVC. This parameter may be omitted if there is a single storage class in the system, or you are using the default storage class. For more information, see [Storage class](https://kubernetes.io/docs/concepts/storage/storage-classes).","type":"string","minLength":1,"nullable":true},"accessModes":{"$ref":"#/components/schemas/PvcAccessModes"},"volumeMode":{"$ref":"#/components/schemas/PvcVolumeMode"},"addedAttrValues":{"$ref":"#/components/schemas/PvcAddedAttrValues"}},"nullable":true,"type":"object"},"PvcClaimSize":{"description":"Requested size for the PVC. Mandatory when existingPvc is false. Recommended sizes: TB/GB/MB/TIB/GIB/MIB","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"PvcAccessModes":{"description":"Requested access mode(s) for the newly created PVC.","properties":{"readWriteOnce":{"description":"Requesting claim that can be mounted in read/write mode to exactly one host. This is the default access mode.","type":"boolean","default":true,"nullable":true},"readOnlyMany":{"description":"Requesting claim that can be mounted in read-only mode to many hosts.","type":"boolean","default":false,"nullable":true},"readWriteMany":{"description":"Requesting claim that can be mounted in read/write mode to many hosts.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PvcVolumeMode":{"description":"The volume mode required by the claim. Choose Filesystem (default) or Block.","type":"string","enum":["Filesystem","Block"],"nullable":true},"PvcAddedAttrValues":{"description":"an optional array of key-values pairs that are written as annotations on the created PVC. the allowed attributes are determined according to the storage class configuration (see k8s-objects-tracker for further info).","type":"array","items":{"$ref":"#/components/schemas/PvcAddedAttrValue"}},"PvcAddedAttrValue":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":63,"pattern":"^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$"},"value":{"type":"string"}}},"PvcItems":{"description":"Set of pvc persistent volume claims to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/PvcInstance"},"nullable":true},"HostPathsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathInstance"},"instances":{"$ref":"#/components/schemas/HostPathItems"}},"nullable":true,"type":"object"},"HostPathInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/HostPath"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"HostPath":{"properties":{"path":{"description":"Local path within the controller to which the host volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","default":true,"nullable":true},"mountPath":{"description":"The path that the host volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagation"}},"nullable":true,"type":"object"},"HostPathMountPropagation":{"description":"Share this volumes mount with other containers. If set to HostToContainer, this volume mount will receive all subsequent mounts that are mounted to this volume or any of its subdirectories. In case of multiple hostPath entries, this field should have the same value for all of them.","type":"string","enum":["None","HostToContainer"],"nullable":true},"HostPathItems":{"description":"Set of host paths to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/HostPathInstance"},"nullable":true},"NfssDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsInstance"},"instances":{"$ref":"#/components/schemas/NfsItems"}},"nullable":true,"type":"object"},"NfsInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Nfs"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Nfs":{"properties":{"path":{"description":"Path that is exported by the NFS server (mandatory). For more information, see [NFS](https://kubernetes.io/docs/concepts/storage/volumes#nfs).","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the NFS export to be mounted with read-only permissions.","type":"boolean","default":true,"nullable":true},"server":{"description":"The hostname or IP address of the NFS server. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"The path that the NFS volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"NfsItems":{"description":"Set of nfs volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/NfsInstance"},"nullable":true},"GitsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/GitInstance"},"instances":{"$ref":"#/components/schemas/GitItems"}},"nullable":true,"type":"object"},"GitInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/GitCommon"},{"$ref":"#/components/schemas/GitPassword"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"GitCommon":{"properties":{"repository":{"description":"URL to a remote Git repository. The content of this repository will be mapped to the container running the workload. (mandatory)","type":"string","minLength":1,"nullable":true},"branch":{"description":"Specific branch to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"revision":{"description":"Specific revision to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the Git repository will be mapped (mandatory).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitPassword":{"properties":{"passwordSecret":{"description":"Secret containing the credentials of the repository (needed for non public repository which requires authentication).","type":"string","minLength":1,"nullable":true},"secretKeyOfUser":{"description":"The key to use for loading the user name from the secret. The default is `User`.","type":"string","minLength":1,"nullable":true},"secretKeyOfPassword":{"description":"The key to use for loading the password from the secret. The default is `Password`.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitItems":{"description":"Set of git repositories to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/GitInstance"},"nullable":true},"ConfigMapsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapInstance"},"instances":{"$ref":"#/components/schemas/ConfigMapField"}},"nullable":true,"type":"object"},"ConfigMapInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/ConfigMap"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"ConfigMap":{"properties":{"configMap":{"description":"The name of the ConfigMap resource. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"Local path within the workload to which the ConfigMap will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ConfigMapField":{"description":"Set of config map volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/ConfigMapInstance"},"nullable":true},"SecretsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretInstance2"},"instances":{"$ref":"#/components/schemas/SecretItems1"}},"nullable":true,"type":"object"},"SecretInstance2":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Secret5"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Secret5":{"allOf":[{"$ref":"#/components/schemas/SecretFieldsUpdatable"},{"$ref":"#/components/schemas/SecretFieldsNonUpdatable"}]},"SecretFieldsUpdatable":{"properties":{"mountPath":{"description":"Local path within the workload to which the Secret will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretFieldsNonUpdatable":{"properties":{"secret":{"description":"The name of the Secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretItems1":{"description":"Set of secret volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/SecretInstance2"},"nullable":true},"EmptyDirsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirInstance"},"instances":{"$ref":"#/components/schemas/EmptyDirItems"}},"nullable":true,"type":"object"},"EmptyDirInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/EmptyDir"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"EmptyDir":{"properties":{"path":{"description":"Local path within the workload to which the EmptyDir volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"medium":{"description":"The type of storage medium for the volume. Use \"Memory\" for memory-backed storage, or leave empty for disk-backed storage.","type":"string","minLength":1,"nullable":true},"sizeLimit":{"description":"The total amount of local storage or memory required for the emptyDir volume. Specify using Kubernetes quantity format (e.g., 1G, 500Mi).","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true}},"nullable":true,"type":"object"},"EmptyDirItems":{"description":"A list of emptyDir volumes to mount in the workload.","type":"array","items":{"$ref":"#/components/schemas/EmptyDirInstance"},"nullable":true},"NonInferenceStorageFieldsDefaults":{"properties":{"s3":{"$ref":"#/components/schemas/S3sDefaults"}},"nullable":true,"type":"object"},"S3sDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Instance"},"instances":{"$ref":"#/components/schemas/S3Items"}},"nullable":true,"type":"object"},"S3Instance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/S3Common"},{"$ref":"#/components/schemas/S3AccessKey"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"S3Common":{"properties":{"bucket":{"description":"The name of the bucket. (mandatory)","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the S3 bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"url":{"description":"The url of the S3 service provider. The default is the URL of the Amazon AWS S3 service.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3AccessKey":{"properties":{"accessKeySecret":{"description":"Name of the secret containing credentials of the S3 bucket. Used for private S3 buckets.","type":"string","minLength":1,"nullable":true},"secretKeyOfAccessKeyId":{"description":"The key to use for loading the access key id from the secret. The default is `AccessKeyId`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true},"secretKeyOfSecretKey":{"description":"The key to use for loading the secret key from the secret. The default is `SecretKey`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3Items":{"description":"Set of s3 buckets to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/S3Instance"},"nullable":true},"NonInferenceFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridable"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridable":{"description":"Container non Inference overrideable fields. It adds properties which are not allowed for Inference containers","properties":{"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.","type":"boolean","nullable":true},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"WorkspacePolicyRulesV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFieldsRules"},{"$ref":"#/components/schemas/NodeRelatedFlatFieldsRules"},{"$ref":"#/components/schemas/CommonItemizedFieldsRules"},{"$ref":"#/components/schemas/AdvancedFlatFieldsRules"},{"$ref":"#/components/schemas/ConnectivityRules"},{"$ref":"#/components/schemas/SecurityRules"},{"$ref":"#/components/schemas/ComputeRules"},{"$ref":"#/components/schemas/StorageRules"},{"$ref":"#/components/schemas/NonInferenceFlatFieldsRules"}]},"CommonFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridableRules"},{"$ref":"#/components/schemas/ContainerNonOverridableRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPodRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPGRules"}],"nullable":true,"type":"object"},"ContainerOverridableRules":{"description":"Container related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"command":{"$ref":"#/components/schemas/StringRules"},"args":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StringRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/StringRulesOptions"}],"nullable":true,"type":"object"},"StringRulesCommon":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true}}},"SourceOfRule":{"description":"This field is used by the system along with effective rules, in order to specify the org unit from which this effective rule has been derived. It should be left empty when sending apply policy requests.","required":["scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"isFallback":{"description":"source of this rule is the fallback policy","type":"boolean"}},"nullable":true,"type":"object"},"StringRulesOptions":{"properties":{"options":{"description":"Set of options that the value of the field must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"},"nullable":true}}},"StringOption":{"description":"One of the values that the field can be assigned to, when options police is applied on the field.","required":["value"],"properties":{"value":{"description":"The value that the field should hold","type":"string"},"displayed":{"description":"Textual description of the value. to be used by user interface applications.","type":"string","nullable":true}}},"ContainerNonOverridableRules":{"properties":{"image":{"$ref":"#/components/schemas/StringRules"},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicyRules"},"workingDir":{"$ref":"#/components/schemas/StringRules"},"createHomeDir":{"$ref":"#/components/schemas/BooleanRules"},"probes":{"$ref":"#/components/schemas/ProbesRules"}},"nullable":true,"type":"object"},"ImagePullPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ImagePullPolicyOptions"}],"nullable":true,"type":"object"},"ImagePullPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ImagePullPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"BooleanRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ProbesRules":{"properties":{"readiness":{"$ref":"#/components/schemas/ProbeRules"}},"nullable":true,"type":"object"},"ProbeRules":{"properties":{"initialDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"periodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"timeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"successThreshold":{"$ref":"#/components/schemas/IntegerRules"},"failureThreshold":{"$ref":"#/components/schemas/IntegerRules"},"handler":{"$ref":"#/components/schemas/ProbeHandlerRules"}},"nullable":true,"type":"object"},"IntegerRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"DefaultFromRule":{"properties":{"field":{"description":"The default of this field is taken from another field, with optional factor. The specified field must belong to the same workload section (compute, security, etc). For itemized field, the value of the field will be taken from the same instance.","type":"string","nullable":true},"factor":{"description":"Multiple the value of the fromField by this factor to get the value for this field For example, if factor is 2 and defaultFrom field has value of 8, the calculated default will be determined to be 16.","type":"number","format":"double","nullable":true,"default":1}},"nullable":true,"type":"object"},"ProbeHandlerRules":{"properties":{"httpGet":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"port":{"$ref":"#/components/schemas/IntegerRules"},"host":{"$ref":"#/components/schemas/StringRules"},"scheme":{"$ref":"#/components/schemas/StringRules"}}}},"nullable":true,"type":"object"},"ResourcesFlatFieldsPerPodRules":{"description":"Resource related parameters.","properties":{"nodeType":{"$ref":"#/components/schemas/StringRules"},"nodeAffinityRequired":{"$ref":"#/components/schemas/ArbitraryRules"},"podAffinity":{"$ref":"#/components/schemas/PodAffinityRules"}},"nullable":true,"type":"object"},"ArbitraryRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this arbitrary object is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"PodAffinityRules":{"properties":{"type":{"$ref":"#/components/schemas/PodAffinityTypeRules"},"key":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PodAffinityTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PodAffinityTypeOptions"}],"nullable":true,"type":"object"},"PodAffinityTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PodAffinityType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"type":"object"},"ResourcesFlatFieldsPerPGRules":{"description":"Resource related parameters.","properties":{"category":{"$ref":"#/components/schemas/StringRules"},"priorityClass":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NodeRelatedFlatFieldsRules":{"description":"Node pools related parameters.","properties":{"nodePools":{"$ref":"#/components/schemas/ArrayRules"}},"nullable":true,"type":"object"},"ArrayRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this array is mandatory. Mandatory array must include at least one item. default to false.","type":"boolean","nullable":true},"options":{"description":"Set of options that the value of each item of the array must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"}},"canEdit":{"description":"Whether the value of the array, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"CommonItemizedFieldsRules":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldRules"},{"$ref":"#/components/schemas/AdvancedItemizedRules"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldRules":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"InstancesRules":{"properties":{"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ItemRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canAdd":{"description":"Whether it is permitted to add items. Default to true.","type":"boolean","nullable":true},"locked":{"description":"Set of keys for items that are \"locked\", i.e. cannot be removed or deleted.","type":"array","items":{"type":"string"}}},"nullable":true,"type":"object"},"AdvancedItemizedRules":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldRules"},{"$ref":"#/components/schemas/LabelsFieldRules"},{"$ref":"#/components/schemas/ImagePullSecretsFieldRules"},{"$ref":"#/components/schemas/TolerationsFieldRules"}],"type":"object","nullable":true},"AnnotationsFieldRules":{"properties":{"annotations":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"LabelsFieldRules":{"properties":{"labels":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"ImagePullSecretsFieldRules":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ImagePullSecretsRulesAttributes"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRulesAttributes":{"description":"Rules for the attributes of imagePullSecrets","properties":{"name":{"$ref":"#/components/schemas/StringRules"},"userCredentials":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationsFieldRules":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsRules"}},"nullable":true,"type":"object"},"TolerationsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/TolerationRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"TolerationRules":{"description":"Toleration details.","properties":{"operator":{"$ref":"#/components/schemas/TolerationOperatorRules"},"key":{"$ref":"#/components/schemas/StringRules"},"value":{"$ref":"#/components/schemas/StringRules"},"effect":{"$ref":"#/components/schemas/TolerationEffectRules"},"seconds":{"$ref":"#/components/schemas/IntegerRules"},"exclude":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationOperatorRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationOperatorOptions"}],"nullable":true,"type":"object"},"TolerationOperatorOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationOperator"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"TolerationEffectRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationEffectOptions"}],"nullable":true,"type":"object"},"TolerationEffectOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationEffect"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"AdvancedFlatFieldsRules":{"properties":{"terminateAfterPreemption":{"$ref":"#/components/schemas/BooleanRules"},"autoDeletionTimeAfterCompletionSeconds":{"$ref":"#/components/schemas/IntegerRules"},"terminationGracePeriodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"backoffLimit":{"$ref":"#/components/schemas/IntegerRules"},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicyRule"}},"nullable":true,"type":"object"},"RestartPolicyRule":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/RestartPolicyOptions"}],"nullable":true,"type":"object"},"RestartPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for restartPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/RestartPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ConnectivityRules":{"properties":{"ports":{"$ref":"#/components/schemas/PortsRules"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsRules"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsRules"}},"nullable":true,"type":"object"},"PortsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PortRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PortRules":{"description":"Rules for port attributes","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"serviceType":{"$ref":"#/components/schemas/PortServiceTypeRules"},"customExternalPort":{"$ref":"#/components/schemas/BooleanRules"},"external":{"$ref":"#/components/schemas/IntegerRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PortServiceTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PortServiceTypeOptions"}],"nullable":true,"type":"object"},"PortServiceTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PortServiceType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ExposedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExposedUrlRules":{"description":"Rules for the attributed of exposedUrls","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"customUrl":{"$ref":"#/components/schemas/BooleanRules"},"url":{"$ref":"#/components/schemas/StringRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"RelatedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"RelatedUrlRules":{"description":"Rules for the attributes of relatedUrls","properties":{"url":{"$ref":"#/components/schemas/StringRules"},"type":{"$ref":"#/components/schemas/StringRules"},"name":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecurityRules":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFieldsRules"}},"nullable":true,"type":"object"},"SecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFieldsRules"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFieldsRules"}],"nullable":true,"type":"object"},"CommonSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridableRules"},{"$ref":"#/components/schemas/CommonSecurityOverridableRules"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridableRules":{"properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSourceRules"},"capabilities":{"$ref":"#/components/schemas/ArrayRules"},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileTypeRules"},"runAsNonRoot":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyRootFilesystem":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"UidGidSourceRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/UidGidSourceOptions"}],"nullable":true,"type":"object"},"UidGidSourceOptions":{"properties":{"options":{"description":"Limit the permitted values for uidGidSource to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/UidGidSource"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"SeccompProfileTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/SeccompProfileTypeOptions"}],"nullable":true,"type":"object"},"SeccompProfileTypeOptions":{"properties":{"options":{"description":"Limit the permitted values for secompProfileType to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/SeccompProfileType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"CommonSecurityOverridableRules":{"description":"Security related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"runAsUid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"runAsGid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"supplementalGroups":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"IntegerRulesOptional":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridableRules"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridableRules":{"properties":{"allowPrivilegeEscalation":{"$ref":"#/components/schemas/BooleanRules"},"hostIpc":{"$ref":"#/components/schemas/BooleanRules"},"hostNetwork":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ComputeRules":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsRules"}},"nullable":true,"type":"object"},"ComputeFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFieldsRules"},{"$ref":"#/components/schemas/ComputeItemizedFieldsRules"}],"nullable":true,"type":"object"},"ComputeFlatFieldsRules":{"properties":{"cpuCoreRequest":{"$ref":"#/components/schemas/NumberRules"},"cpuCoreLimit":{"$ref":"#/components/schemas/NumberRules"},"cpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"cpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"},"largeShmRequest":{"$ref":"#/components/schemas/BooleanRules"},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestRules"},"migProfile":{"$ref":"#/components/schemas/MigProfileRules","deprecated":true},"gpuDevicesRequest":{"$ref":"#/components/schemas/IntegerRules"},"gpuPortionRequest":{"$ref":"#/components/schemas/NumberRules"},"gpuPortionLimit":{"$ref":"#/components/schemas/NumberRules"},"gpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"gpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"}},"nullable":true,"type":"object"},"NumberRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"number","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"number","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=3, step=0.25 implies that the values the field can hold are 2, 2.25, 2.5 and 3.","type":"number","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"QuantityRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"max":{"description":"The maximum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"GpuRequestRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/GpuRequestOptions"}],"nullable":true,"type":"object"},"GpuRequestOptions":{"properties":{"options":{"description":"Limit the permitted values for gpuRequest to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/GpuRequestType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"MigProfileRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/MigProfileOptions"}],"nullable":true,"type":"object"},"MigProfileOptions":{"properties":{"options":{"description":"Limit the permitted values for migProfile to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/MigProfile"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object","deprecated":true},"ComputeItemizedFieldsRules":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesRules"}},"nullable":true,"type":"object"},"ExtendedResourcesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResourceRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExtendedResourceRules":{"description":"Rules for the attributes of extendedResources","properties":{"quantity":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StorageRules":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsRules"}},"nullable":true,"type":"object"},"StorageFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsRules"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsRules"}],"nullable":true,"type":"object"},"CommonStorageFieldsRules":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesRules"},"pvc":{"$ref":"#/components/schemas/PvcsRules"},"hostPath":{"$ref":"#/components/schemas/HostPathsRules"},"nfs":{"$ref":"#/components/schemas/NfssRules"},"git":{"$ref":"#/components/schemas/GitsRules"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsRules"},"secretVolume":{"$ref":"#/components/schemas/SecretsRules"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsRules"}},"nullable":true,"type":"object"},"DataVolumesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"DataVolumeRules":{"properties":{"id":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PvcsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PvcRules":{"properties":{"claimName":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"claimInfo":{"$ref":"#/components/schemas/ClaimInfoRules"}},"nullable":true,"type":"object"},"ClaimInfoRules":{"properties":{"size":{"$ref":"#/components/schemas/StringRules"},"storageClass":{"$ref":"#/components/schemas/StringRules"},"accessModes":{"$ref":"#/components/schemas/PvcAccessModesRules"}},"nullable":true,"type":"object"},"PvcAccessModesRules":{"description":"Rules for access mode(s) for a newly created PVC.","properties":{"readWriteOnce":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyMany":{"$ref":"#/components/schemas/BooleanRules"},"readWriteMany":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"HostPathsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"HostPathRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagationRules"}},"nullable":true,"type":"object"},"HostPathMountPropagationRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/HostPathMountPropagationOptions"}],"nullable":true,"type":"object"},"HostPathMountPropagationOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/HostPathMountPropagation"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}}},"NfssRules":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"NfsRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"server":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"GitsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/GitRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"GitRules":{"properties":{"repository":{"$ref":"#/components/schemas/StringRules"},"branch":{"$ref":"#/components/schemas/StringRules"},"revision":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ConfigMapsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ConfigMapRules":{"properties":{"configMap":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"subPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"SecretRules":{"properties":{"secret":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"EmptyDirsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"EmptyDirRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"medium":{"$ref":"#/components/schemas/StringRules"},"sizeLimit":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceStorageFieldsRules":{"properties":{"s3":{"$ref":"#/components/schemas/S3sRules"}},"nullable":true,"type":"object"},"S3sRules":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Rules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"S3Rules":{"properties":{"bucket":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"url":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridableRules"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridableRules":{"properties":{"tty":{"$ref":"#/components/schemas/BooleanRules"},"stdin":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ImposedAssets":{"description":"a list of datasource assets to import into the policy. these datasources will be included in any workload that will be created in the scope of the policy.","type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"Timestamp":{"description":"The time at which an event occurred. e.g. the time an effective policy has been updated","type":"string","minLength":1,"format":"date-time"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404NotFound":{"description":"The specified resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy/workspaces":{"get":{"summary":"Get a workspace policy.","description":"Retrieve the details of a workspace policy for a given organizational unit.","operationId":"get_workspace_policy_v2","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/PolicyScope"},{"$ref":"#/components/parameters/FilterByDepartment"},{"$ref":"#/components/parameters/FilterByProject"},{"$ref":"#/components/parameters/FilterByCluster"}],"responses":{"200":{"description":"Request completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspacePolicyV2"}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"404":{"$ref":"#/components/responses/404NotFound"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Overwrite a workspace policy.

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

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"ValidateOnly":{"name":"validateOnly","in":"query","required":false,"description":"Validate the given policy payload without applying it","schema":{"type":"boolean"}}},"schemas":{"WorkspacePolicyOverwriteRequestV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyCreationFields"},"policy":{"$ref":"#/components/schemas/WorkspacePolicyDefaultsAndRulesV2"}},"type":"object"},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"WorkspacePolicyDefaultsAndRulesV2":{"properties":{"defaults":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFields"},{"$ref":"#/components/schemas/NodeRelatedFlatFields"},{"$ref":"#/components/schemas/CommonItemizedDefaults"},{"$ref":"#/components/schemas/AdvancedFlatFields"},{"$ref":"#/components/schemas/ConnectivityDefaults"},{"$ref":"#/components/schemas/Security"},{"$ref":"#/components/schemas/ComputeDefaults"},{"$ref":"#/components/schemas/StorageDefaults"},{"$ref":"#/components/schemas/NonInferenceFlatFields"}],"nullable":true,"type":"object"},"rules":{"allOf":[{"$ref":"#/components/schemas/WorkspacePolicyRulesV2"}],"nullable":true,"type":"object"},"imposedAssets":{"$ref":"#/components/schemas/ImposedAssets"},"status":{"$ref":"#/components/schemas/PolicyValidationStatus"}},"nullable":true,"type":"object"},"CommonFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridable"},{"$ref":"#/components/schemas/ContainerNonOverridable"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPod"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPG"}],"nullable":true,"type":"object"},"ContainerOverridable":{"description":"Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"command":{"description":"A command to the server as the entry point of the container running the workload.","type":"string","minLength":1,"nullable":true},"args":{"description":"Arguments to the command that the container running the workload executes.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ContainerNonOverridable":{"description":"Container non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"image":{"description":"Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a workload.","type":"string","minLength":1,"nullable":true},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicy"},"workingDir":{"description":"Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.","type":"string","minLength":1,"nullable":true},"createHomeDir":{"description":"When set to `true`, creates a home directory for the container.","type":"boolean","nullable":true},"probes":{"$ref":"#/components/schemas/Probes"}},"nullable":true,"type":"object"},"ImagePullPolicy":{"description":"Image pull policy. Defaults to `Always` if `:latest` tag is specified, otherwise it is `IfNotPresent`.","type":"string","minLength":1,"enum":["Always","Never","IfNotPresent"],"nullable":true},"Probes":{"description":"Probes are used to determine if the container is healthy and ready to accept traffic.","type":"object","properties":{"readiness":{"$ref":"#/components/schemas/Probe"}},"nullable":true},"Probe":{"type":"object","properties":{"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness or readiness probes are initiated.","type":"integer","format":"int32","minimum":0,"nullable":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe.","type":"integer","format":"int32","minimum":1,"nullable":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out.","type":"integer","format":"int32","minimum":1,"nullable":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed.","type":"integer","format":"int32","minimum":1,"nullable":true},"failureThreshold":{"description":"When a probe fails, the number of times to try before giving up.","type":"integer","format":"int32","minimum":1,"nullable":true},"handler":{"$ref":"#/components/schemas/ProbeHandler"}},"nullable":true},"ProbeHandler":{"description":"The action taken to determine the health of the container. (mandatory)","type":"object","properties":{"httpGet":{"description":"An action based on HTTP Get requests.","type":"object","properties":{"path":{"description":"Path to access on the HTTP server, defaults to /.","type":"string","pattern":"^(\\x2F[a-zA-Z0-9\\-_.\\x2F]*)?$","nullable":true},"port":{"description":"Number of the port to access on the container.","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"host":{"description":"Host name to connect to, defaults to the pod IP.","type":"string","format":"hostname","nullable":true},"scheme":{"$ref":"#/components/schemas/ProbeHandlerScheme"}}}},"nullable":true},"ProbeHandlerScheme":{"description":"Scheme to use for connecting to the host, defaults to HTTP.","type":"string","enum":["HTTP","HTTPS"],"nullable":true},"ResourcesFlatFieldsPerPod":{"description":"Resource parameters.","properties":{"nodeType":{"description":"Nodes (machines), or a group of nodes on which the workload will run. To use this feature, your Administrator will need to label nodes. For more information, see [Group Nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/researcher-setup/limit-to-node-group). When using this flag with with Project-based affinity, it refines the list of allowable node groups set in the Project. For more information, see [Projects](https://docshub.run.ai/guides/platform-management/aiinitiatives/organization/projects).","type":"string","minLength":1,"nullable":true},"nodeAffinityRequired":{"$ref":"#/components/schemas/NodeAffinityRequired"},"podAffinity":{"$ref":"#/components/schemas/PodAffinity"}},"nullable":true,"type":"object"},"NodeAffinityRequired":{"type":"object","description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","properties":{"nodeSelectorTerms":{"description":"A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/components/schemas/NodeSelectorTerm"}}},"nullable":true},"NodeSelectorTerm":{"type":"object","description":"A null or empty node selector term matches no objects. The requirements of them are ANDed.","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"$ref":"#/components/schemas/MatchExpression"}}},"nullable":true},"MatchExpression":{"type":"object","description":"A selector that contains values, a key, and an operator that relates the key and values.","properties":{"key":{"description":"The label key that the selector applies to (mandatory).","type":"string"},"operator":{"$ref":"#/components/schemas/MatchExpressionOperator"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.","type":"array","items":{"type":"string"}}},"required":["key","operator"],"nullable":true},"MatchExpressionOperator":{"description":"Represents a key's relationship to a set of values (mandatory).","type":"string","enum":["In","NotIn","Exists","DoesNotExist","Gt","Lt"]},"PodAffinity":{"description":"Pod affinity scheduling rules (e.g. co-locate this workload in the same node, zone, etc. as some other workloads).","type":"object","properties":{"type":{"$ref":"#/components/schemas/PodAffinityType"},"key":{"description":"The label key to use. (mandatory)","type":"string","nullable":true}},"nullable":true},"PodAffinityType":{"description":"The affinity type, required or preferred. (mandatory)","type":"string","enum":["Required","Preferred"],"nullable":true},"ResourcesFlatFieldsPerPG":{"description":"Resource parameters.","properties":{"category":{"$ref":"#/components/schemas/Category"},"priorityClass":{"$ref":"#/components/schemas/PriorityClass"}},"nullable":true,"type":"object"},"Category":{"description":"Specify the workload category assigned to the workload. Categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.","type":"string","nullable":true},"PriorityClass":{"description":"Specifies the priority class for the workload.  Valid values are: very-low, low, medium-low, medium, medium-high, high, very-high.  You can use this parameter to adjust the workload's scheduling behavior.  Each workload type has a default priority.  To view the default priority for each workload type, use the GET /workload-types endpoint.","type":"string","nullable":true},"NodeRelatedFlatFields":{"description":"Node related parameters.","properties":{"nodePools":{"description":"A prioritized list of node pools for the scheduler to run the workload on. The scheduler will always try to use the first node pool before moving to the next one if the first is not available.","type":"array","items":{"type":"string"},"nullable":true}},"nullable":true,"type":"object"},"CommonItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldDefaults"},{"$ref":"#/components/schemas/AdvancedItemizedDefaults"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldDefaults":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/EnvironmentVariablesDefaults"}},"nullable":true,"type":"object"},"EnvironmentVariablesDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/EnvironmentVariables"}},"nullable":true,"type":"object"},"EnvironmentVariables":{"description":"Set of environment variables to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"nullable":true},"EnvironmentVariable":{"description":"Details of an environment variable which is populated into the container.","properties":{"name":{"description":"The name of the environment variable. (mandatory)","type":"string","minLength":1,"nullable":true},"value":{"description":"The value of the environment variable. (mutually exclusive with secret, credential, configMap and podFieldRef)","type":"string","nullable":true},"secret":{"$ref":"#/components/schemas/EnvironmentVariableSecret"},"configMap":{"$ref":"#/components/schemas/EnvironmentVariableConfigMap"},"podFieldRef":{"$ref":"#/components/schemas/EnvironmentVariablePodFieldReference"},"exclude":{"description":"Use 'true' in case the environment variable is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true},"description":{"description":"Description of the environment variable.","type":"string","nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableSecret":{"description":"Details of the secret and key use to populate the environment variable","properties":{"name":{"description":"The name of the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableConfigMap":{"description":"Details of the configMap and key use to populate the environment variable","properties":{"name":{"description":"The name of the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariablePodFieldReference":{"description":"Details of the field-reference and key use to populate the environment variable","properties":{"path":{"description":"The field path resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"AdvancedItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldDefaults"},{"$ref":"#/components/schemas/LabelsFieldDefaults"},{"$ref":"#/components/schemas/ImagePullSecretsFieldDefaults"},{"$ref":"#/components/schemas/TolerationsFieldDefaults"}],"type":"object","nullable":true},"AnnotationsFieldDefaults":{"properties":{"annotations":{"$ref":"#/components/schemas/AnnotationsDefaults"}},"nullable":true,"type":"object"},"AnnotationsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Annotations"}},"nullable":true,"type":"object"},"Annotations":{"description":"Set of annotations to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Annotation"},"nullable":true},"Annotation":{"description":"Annotation details to be populated into the container.","properties":{"name":{"description":"The name of the annotation (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the annotation.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the annotation is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"LabelsFieldDefaults":{"properties":{"labels":{"$ref":"#/components/schemas/LabelsDefaults"}},"nullable":true,"type":"object"},"LabelsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Labels"}},"nullable":true,"type":"object"},"Labels":{"description":"Set of labels to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Label"},"nullable":true},"Label":{"description":"Label details to be populated into the container.","properties":{"name":{"description":"The name of the label (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the label.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ImagePullSecretsFieldDefaults":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsDefaults"}},"nullable":true,"type":"object"},"ImagePullSecretsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/ImagePullSecrets"}},"nullable":true,"type":"object"},"ImagePullSecrets":{"description":"A list of references to Kubernetes secrets in the same namespace used for pulling container images.","type":"array","items":{"$ref":"#/components/schemas/ImagePullSecret"},"nullable":true},"ImagePullSecret":{"description":"A reference to a secret in the same namespace used to pull container images.","properties":{"name":{"type":"string","description":"The name of the Kubernetes secret containing the image pull credentials."},"userCredential":{"type":"boolean","description":"Indicates whether the secret is a user credential. Set to true if the secret was created by the user and is only accessible by them.","nullable":true},"exclude":{"description":"Use 'true' in case the secret is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"TolerationsFieldDefaults":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsDefaults"}},"nullable":true,"type":"object"},"TolerationsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Toleration"},"instances":{"$ref":"#/components/schemas/Tolerations"}},"nullable":true,"type":"object"},"Toleration":{"description":"Toleration details.","properties":{"name":{"description":"The name of the toleration.","type":"string","minLength":1,"nullable":true},"operator":{"$ref":"#/components/schemas/TolerationOperator"},"key":{"description":"The taint key that the toleration applies to. (mandatory)","type":"string","nullable":true},"value":{"description":"The taint value the toleration matches to. Mandatory if operator is Exists, forbidden otherwise.","type":"string","nullable":true},"effect":{"$ref":"#/components/schemas/TolerationEffect"},"seconds":{"description":"The period of time the toleration tolerates the taint. Valid only if effect is NoExecute. taint.","type":"integer","minimum":1,"nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TolerationOperator":{"description":"A key's relationship to the value. Equal uses key and value. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. (mandatory)","type":"string","enum":["Equal","Exists"],"nullable":true},"TolerationEffect":{"description":"The taint effect to match. (mandatory)","type":"string","enum":["NoSchedule","NoExecute","PreferNoSchedule","Any"],"nullable":true},"Tolerations":{"description":"Set of tolerations to apply to the workload.","type":"array","items":{"$ref":"#/components/schemas/Toleration"},"nullable":true},"AdvancedFlatFields":{"properties":{"terminateAfterPreemption":{"description":"Indicates if the job should be terminated by the system after it has been preempted.","type":"boolean","nullable":true},"autoDeletionTimeAfterCompletionSeconds":{"description":"Specifies the duration after which a finished workload (completed or failed) will be automatically deleted. The default is 30 days.","format":"int64","type":"integer","nullable":true},"terminationGracePeriodSeconds":{"description":"Duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down).","format":"int64","type":"integer","minimum":0,"nullable":true},"backoffLimit":{"description":"Specifies the number of retries before marking a workload as failed (not applicable to Inference workloads). The default value is 6.","format":"int64","type":"integer","nullable":true},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicy"}},"nullable":true,"type":"object"},"RestartPolicy":{"description":"Specify the restart policy of the workload pods. Default is empty, which is determine by the framework default","type":"string","minLength":1,"enum":["Always","Never","OnFailure"],"nullable":true},"ConnectivityDefaults":{"properties":{"ports":{"$ref":"#/components/schemas/PortsDefaults"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsDefaults"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsDefaults"}},"nullable":true,"type":"object"},"PortsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Port"},"instances":{"$ref":"#/components/schemas/Ports"}},"nullable":true,"type":"object"},"Port":{"description":"A port for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"serviceType":{"$ref":"#/components/schemas/PortServiceType"},"external":{"description":"The external port which allows a connection to the container port. If not specified, the port will be auto-generated by the system..","type":"integer","format":"int32","nullable":true},"toolType":{"description":"The tool type that runs on this port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this port.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PortServiceType":{"description":"The service type of the port (mandatory).","type":"string","enum":["LoadBalancer","NodePort","ClusterIP"],"nullable":true},"Ports":{"description":"Set of container ports that the workload exposes.","type":"array","items":{"$ref":"#/components/schemas/Port"},"nullable":true},"ExposedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrl"},"instances":{"$ref":"#/components/schemas/ExposedUrls"}},"nullable":true,"type":"object"},"ExposedUrl":{"description":"A URL for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","nullable":true},"url":{"description":"The URL for connecting to the container port. If not specified, the URL will be auto-generated by the system..","type":"string","nullable":true},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"toolType":{"description":"The tool type that runs on this container port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this url.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the instance is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExposedUrls":{"description":"Set of container ports that the workload exposes via URLs.","type":"array","items":{"$ref":"#/components/schemas/ExposedUrl"},"nullable":true},"RelatedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrl"},"instances":{"$ref":"#/components/schemas/RelatedUrls"}},"nullable":true,"type":"object"},"RelatedUrl":{"description":"A URL that is related to the workload. For example, a URL to an external server providing statistics or logging about the workload.","properties":{"url":{"description":"The URL for connecting an external service related to the workload. (mandatory)","type":"string","nullable":true},"type":{"description":"The type of service that the url provides. For example, wandb (Weights & Biases). (mandatory)","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"RelatedUrls":{"description":"Set of URLs that are related to the workload.","type":"array","items":{"$ref":"#/components/schemas/RelatedUrl"},"nullable":true},"Security":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFields"}},"nullable":true,"type":"object"},"SecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFields"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFields"}],"nullable":true,"type":"object"},"CommonSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridable"},{"$ref":"#/components/schemas/CommonSecurityOverridable"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridable":{"description":"Security non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSource"},"capabilities":{"description":"Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.","type":"array","items":{"$ref":"#/components/schemas/Capability"},"nullable":true},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileType"},"runAsNonRoot":{"description":"Force the container to run as a non-root user.","type":"boolean","nullable":true},"readOnlyRootFilesystem":{"description":"If true, mounts the container's root filesystem as read-only.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"UidGidSource":{"description":"Indicate the way to determine the user and group ids of the container. The options are a. `fromTheImage` - user and group ids are determined by the docker image that the container runs. this is the default option. b. `custom` - user and group ids can be specified in the environment asset and/or the workload creation request. c. `idpToken` - user and group ids are determined according to the identity provider (idp) access token. This option is intended for internal use of the environment UI form. For more information, see [User Identity](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/runai-setup/config/non-root-containers/).","type":"string","enum":["fromTheImage","fromIdpToken","custom"],"nullable":true},"Capability":{"type":"string","enum":["AUDIT_CONTROL","AUDIT_READ","AUDIT_WRITE","BLOCK_SUSPEND","CHOWN","DAC_OVERRIDE","DAC_READ_SEARCH","FOWNER","FSETID","IPC_LOCK","IPC_OWNER","KILL","LEASE","LINUX_IMMUTABLE","MAC_ADMIN","MAC_OVERRIDE","MKNOD","NET_ADMIN","NET_BIND_SERVICE","NET_BROADCAST","NET_RAW","SETGID","SETFCAP","SETPCAP","SETUID","SYS_ADMIN","SYS_BOOT","SYS_CHROOT","SYS_MODULE","SYS_NICE","SYS_PACCT","SYS_PTRACE","SYS_RAWIO","SYS_RESOURCE","SYS_TIME","SYS_TTY_CONFIG","SYSLOG","WAKE_ALARM"]},"SeccompProfileType":{"description":"Indicates which kind of seccomp profile will be applied to the container. The options are a. `RuntimeDefault` - the container runtime default profile should be used. b. `Unconfined` - no profile should be applied. c. `Localhost` is not yet supported by Run:ai.","type":"string","enum":["RuntimeDefault","Unconfined","Localhost"],"nullable":true},"CommonSecurityOverridable":{"description":"Security overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"runAsUid":{"description":"The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsUid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"runAsGid":{"description":"The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsGid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"supplementalGroups":{"description":"Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled. Using an empty string implies reverting the supplementary groups of the image.","type":"string","nullable":true}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridable"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridable":{"description":"Security related fields. When used in assets context, those are environment asset fields that cannot be override in the submit workload request.","properties":{"allowPrivilegeEscalation":{"description":"Allow the container running the workload and all launched processes to gain additional privileges after the workload starts. For more information consult the User Identity in Container guide at https://docs.run.ai/admin/runai-setup/config/non-root-containers/","type":"boolean","nullable":true},"hostIpc":{"description":"Whether to enable host IPC. Defaults to false.","type":"boolean","nullable":true},"hostNetwork":{"description":"Whether to enable host networking. Default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ComputeDefaults":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsDefaults"}},"nullable":true,"type":"object"},"ComputeFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFields"},{"$ref":"#/components/schemas/ComputeItemizedFieldsDefaults"}],"nullable":true,"type":"object"},"ComputeFlatFields":{"properties":{"gpuDevicesRequest":{"description":"Requested number of GPU devices. Currently if more than one device is requested, it is not possible to provide values for gpuMemory, gpuPortion or migProfile [deprecated].","type":"integer","format":"int32","nullable":true,"minimum":0},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestType"},"gpuPortionRequest":{"description":"Required if and only if gpuRequestType is portion. States the portion of the GPU to allocate for the created workload, per GPU device, between 0 and 1. The default is no allocated GPUs.","type":"number","format":"double","nullable":true,"minimum":0},"gpuPortionLimit":{"description":"Limitations on the portion consumed by the workload, per GPU device. The system guarantees The gpuPotionLimit must be no less than the gpuPortionRequest.","type":"number","format":"double","nullable":true,"minimum":0},"gpuMemoryRequest":{"description":"Required if and only if gpuRequestType is memory. States the GPU memory to allocate for the created workload, per GPU device. Note that the workload will not be scheduled unless the system can guarantee this amount of GPU memory to the workload.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"gpuMemoryLimit":{"description":"Limitation on the memory consumed by the workload, per GPU device. The system guarantees The gpuMemoryLimit must be no less than gpuMemoryRequest.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"migProfile":{"$ref":"#/components/schemas/MigProfile","depracted":true},"cpuCoreRequest":{"description":"CPU units to allocate for the created workload (0.5, 1, .etc). The workload will receive at least this amount of CPU. Note that the workload will not be scheduled unless the system can guarantee this amount of CPUs to the workload.","format":"double","type":"number","nullable":true,"minimum":0},"cpuCoreLimit":{"description":"Limitations on the number of CPUs consumed by the workload (0.5, 1, .etc). The system guarantees that this workload will not be able to consume more than this amount of CPUs.","format":"double","type":"number","nullable":true,"minimum":0},"cpuMemoryRequest":{"description":"The amount of CPU memory to allocate for this workload (1G, 20M, .etc). The workload will receive at least this amount of memory. Note that the workload will not be scheduled unless the system can guarantee this amount of memory to the workload","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"cpuMemoryLimit":{"description":"Limitations on the CPU memory to allocate for this workload (1G, 20M, .etc). The system guarantees that this workload will not be able to consume more than this amount of memory. The workload will receive an error when trying to allocate more memory than this limit.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"largeShmRequest":{"description":"A large /dev/shm device to mount into a container running the created workload. An shm is a shared file system mounted on RAM.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"GpuRequestType":{"description":"Sets the unit type for GPU resources requests. Stated in terms of portion, memory or  mig profile [deprecated]. Sets the unit type for other GPU request fields. If `gpuDevicesRequest > 1`, only `portion` is supported. If `gpuDeviceRequest = 1`, the request type can be stated as `portion`, `memory` or `migProfile` [deprecated].","type":"string","minLength":1,"enum":["portion","memory","migProfile"],"nullable":true},"MigProfile":{"description":"Required only if `gpuRequestType` is `migProfile`. This states the memory profile to be used for the workload running NVIDIA Multi-Instance GPU (MIG) technology.","type":"string","deprecated":true,"minLength":1,"enum":["1g.5gb","1g.10gb","2g.10gb","2g.20gb","3g.20gb","3g.40gb","4g.20gb","4g.40gb","7g.40gb","7g.80gb"],"nullable":true},"ComputeItemizedFieldsDefaults":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesDefaults"}},"nullable":true,"type":"object"},"ExtendedResourcesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResource"},"instances":{"$ref":"#/components/schemas/ExtendedResources"}},"nullable":true,"type":"object"},"ExtendedResource":{"description":"Quantity of an extended resource.","properties":{"resource":{"description":"The name of the extended resource (mandatory)","type":"string","minLength":1,"nullable":true},"quantity":{"description":"The requested quantity for the resource.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the extended resource is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExtendedResources":{"description":"Extended resources and their quantity.","type":"array","items":{"$ref":"#/components/schemas/ExtendedResource"},"nullable":true},"StorageDefaults":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsDefaults"}},"nullable":true,"type":"object"},"StorageFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsDefaults"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsDefaults"}],"nullable":true,"type":"object"},"CommonStorageFieldsDefaults":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesDefaults"},"pvc":{"$ref":"#/components/schemas/PvcsDefaults"},"hostPath":{"$ref":"#/components/schemas/HostPathsDefaults"},"nfs":{"$ref":"#/components/schemas/NfssDefaults"},"git":{"$ref":"#/components/schemas/GitsDefaults"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsDefaults"},"secretVolume":{"$ref":"#/components/schemas/SecretsDefaults"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsDefaults"}},"nullable":true,"type":"object"},"DataVolumesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeInstance"},"instances":{"$ref":"#/components/schemas/DataVolumeItems"}},"nullable":true,"type":"object"},"DataVolumeInstance":{"allOf":[{"$ref":"#/components/schemas/DataVolume"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"DataVolume":{"properties":{"id":{"description":"The unique identifier of the data volume. (mandatory)","type":"string","format":"uuid","nullable":true},"mountPath":{"description":"The path where the data volume will be mounted. (mandatory)","type":"string","nullable":true}},"nullable":true,"type":"object"},"ExcludeField":{"properties":{"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"type":"object","nullable":true},"DataVolumeItems":{"description":"Set of data volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/DataVolumeInstance"},"nullable":true},"PvcsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcInstance"},"instances":{"$ref":"#/components/schemas/PvcItems"}},"nullable":true,"type":"object"},"PvcInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Pvc"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"StorageInstanceName":{"properties":{"name":{"description":"unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"Pvc":{"allOf":[{"$ref":"#/components/schemas/PvcFieldsUpdatable"},{"$ref":"#/components/schemas/PvcFieldsNonUpdatable"}]},"PvcFieldsUpdatable":{"properties":{"path":{"description":"Local path within the workload to which the PVC bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"PvcFieldsNonUpdatable":{"properties":{"existingPvc":{"description":"Verify existing PVC. PVC is assumed to exist when set to `true`. If set to `false`, the PVC will be created, if it does not exist.","type":"boolean","default":false,"nullable":true},"claimName":{"description":"Name for the PVC. Allow referencing it across workloads. If not provided, a name based on the workload name and scope will be auto-generated.","type":"string","minLength":1,"maxLength":63,"nullable":true},"readOnly":{"description":"Permit only read access to PVC.","type":"boolean","default":false,"nullable":true},"ephemeral":{"description":"Use `true` to set PVC to ephemeral. If set to `true`, the PVC will be deleted when the workload is stopped. Not supported for inference workloads.","type":"boolean","default":false,"nullable":true},"claimInfo":{"$ref":"#/components/schemas/ClaimInfo"},"dataSharing":{"description":"use `true` to share the PVC data to all projects under the selected scope.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"ClaimInfo":{"description":"Claim information for the newly created PVC. The information should not be provided when attempting to use existing PVC.","properties":{"size":{"$ref":"#/components/schemas/PvcClaimSize"},"storageClass":{"description":"Storage class name to associate with the PVC. This parameter may be omitted if there is a single storage class in the system, or you are using the default storage class. For more information, see [Storage class](https://kubernetes.io/docs/concepts/storage/storage-classes).","type":"string","minLength":1,"nullable":true},"accessModes":{"$ref":"#/components/schemas/PvcAccessModes"},"volumeMode":{"$ref":"#/components/schemas/PvcVolumeMode"},"addedAttrValues":{"$ref":"#/components/schemas/PvcAddedAttrValues"}},"nullable":true,"type":"object"},"PvcClaimSize":{"description":"Requested size for the PVC. Mandatory when existingPvc is false. Recommended sizes: TB/GB/MB/TIB/GIB/MIB","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"PvcAccessModes":{"description":"Requested access mode(s) for the newly created PVC.","properties":{"readWriteOnce":{"description":"Requesting claim that can be mounted in read/write mode to exactly one host. This is the default access mode.","type":"boolean","default":true,"nullable":true},"readOnlyMany":{"description":"Requesting claim that can be mounted in read-only mode to many hosts.","type":"boolean","default":false,"nullable":true},"readWriteMany":{"description":"Requesting claim that can be mounted in read/write mode to many hosts.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PvcVolumeMode":{"description":"The volume mode required by the claim. Choose Filesystem (default) or Block.","type":"string","enum":["Filesystem","Block"],"nullable":true},"PvcAddedAttrValues":{"description":"an optional array of key-values pairs that are written as annotations on the created PVC. the allowed attributes are determined according to the storage class configuration (see k8s-objects-tracker for further info).","type":"array","items":{"$ref":"#/components/schemas/PvcAddedAttrValue"}},"PvcAddedAttrValue":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":63,"pattern":"^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$"},"value":{"type":"string"}}},"PvcItems":{"description":"Set of pvc persistent volume claims to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/PvcInstance"},"nullable":true},"HostPathsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathInstance"},"instances":{"$ref":"#/components/schemas/HostPathItems"}},"nullable":true,"type":"object"},"HostPathInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/HostPath"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"HostPath":{"properties":{"path":{"description":"Local path within the controller to which the host volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","default":true,"nullable":true},"mountPath":{"description":"The path that the host volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagation"}},"nullable":true,"type":"object"},"HostPathMountPropagation":{"description":"Share this volumes mount with other containers. If set to HostToContainer, this volume mount will receive all subsequent mounts that are mounted to this volume or any of its subdirectories. In case of multiple hostPath entries, this field should have the same value for all of them.","type":"string","enum":["None","HostToContainer"],"nullable":true},"HostPathItems":{"description":"Set of host paths to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/HostPathInstance"},"nullable":true},"NfssDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsInstance"},"instances":{"$ref":"#/components/schemas/NfsItems"}},"nullable":true,"type":"object"},"NfsInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Nfs"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Nfs":{"properties":{"path":{"description":"Path that is exported by the NFS server (mandatory). For more information, see [NFS](https://kubernetes.io/docs/concepts/storage/volumes#nfs).","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the NFS export to be mounted with read-only permissions.","type":"boolean","default":true,"nullable":true},"server":{"description":"The hostname or IP address of the NFS server. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"The path that the NFS volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"NfsItems":{"description":"Set of nfs volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/NfsInstance"},"nullable":true},"GitsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/GitInstance"},"instances":{"$ref":"#/components/schemas/GitItems"}},"nullable":true,"type":"object"},"GitInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/GitCommon"},{"$ref":"#/components/schemas/GitPassword"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"GitCommon":{"properties":{"repository":{"description":"URL to a remote Git repository. The content of this repository will be mapped to the container running the workload. (mandatory)","type":"string","minLength":1,"nullable":true},"branch":{"description":"Specific branch to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"revision":{"description":"Specific revision to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the Git repository will be mapped (mandatory).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitPassword":{"properties":{"passwordSecret":{"description":"Secret containing the credentials of the repository (needed for non public repository which requires authentication).","type":"string","minLength":1,"nullable":true},"secretKeyOfUser":{"description":"The key to use for loading the user name from the secret. The default is `User`.","type":"string","minLength":1,"nullable":true},"secretKeyOfPassword":{"description":"The key to use for loading the password from the secret. The default is `Password`.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitItems":{"description":"Set of git repositories to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/GitInstance"},"nullable":true},"ConfigMapsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapInstance"},"instances":{"$ref":"#/components/schemas/ConfigMapField"}},"nullable":true,"type":"object"},"ConfigMapInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/ConfigMap"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"ConfigMap":{"properties":{"configMap":{"description":"The name of the ConfigMap resource. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"Local path within the workload to which the ConfigMap will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ConfigMapField":{"description":"Set of config map volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/ConfigMapInstance"},"nullable":true},"SecretsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretInstance2"},"instances":{"$ref":"#/components/schemas/SecretItems1"}},"nullable":true,"type":"object"},"SecretInstance2":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Secret5"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Secret5":{"allOf":[{"$ref":"#/components/schemas/SecretFieldsUpdatable"},{"$ref":"#/components/schemas/SecretFieldsNonUpdatable"}]},"SecretFieldsUpdatable":{"properties":{"mountPath":{"description":"Local path within the workload to which the Secret will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretFieldsNonUpdatable":{"properties":{"secret":{"description":"The name of the Secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretItems1":{"description":"Set of secret volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/SecretInstance2"},"nullable":true},"EmptyDirsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirInstance"},"instances":{"$ref":"#/components/schemas/EmptyDirItems"}},"nullable":true,"type":"object"},"EmptyDirInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/EmptyDir"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"EmptyDir":{"properties":{"path":{"description":"Local path within the workload to which the EmptyDir volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"medium":{"description":"The type of storage medium for the volume. Use \"Memory\" for memory-backed storage, or leave empty for disk-backed storage.","type":"string","minLength":1,"nullable":true},"sizeLimit":{"description":"The total amount of local storage or memory required for the emptyDir volume. Specify using Kubernetes quantity format (e.g., 1G, 500Mi).","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true}},"nullable":true,"type":"object"},"EmptyDirItems":{"description":"A list of emptyDir volumes to mount in the workload.","type":"array","items":{"$ref":"#/components/schemas/EmptyDirInstance"},"nullable":true},"NonInferenceStorageFieldsDefaults":{"properties":{"s3":{"$ref":"#/components/schemas/S3sDefaults"}},"nullable":true,"type":"object"},"S3sDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Instance"},"instances":{"$ref":"#/components/schemas/S3Items"}},"nullable":true,"type":"object"},"S3Instance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/S3Common"},{"$ref":"#/components/schemas/S3AccessKey"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"S3Common":{"properties":{"bucket":{"description":"The name of the bucket. (mandatory)","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the S3 bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"url":{"description":"The url of the S3 service provider. The default is the URL of the Amazon AWS S3 service.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3AccessKey":{"properties":{"accessKeySecret":{"description":"Name of the secret containing credentials of the S3 bucket. Used for private S3 buckets.","type":"string","minLength":1,"nullable":true},"secretKeyOfAccessKeyId":{"description":"The key to use for loading the access key id from the secret. The default is `AccessKeyId`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true},"secretKeyOfSecretKey":{"description":"The key to use for loading the secret key from the secret. The default is `SecretKey`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3Items":{"description":"Set of s3 buckets to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/S3Instance"},"nullable":true},"NonInferenceFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridable"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridable":{"description":"Container non Inference overrideable fields. It adds properties which are not allowed for Inference containers","properties":{"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.","type":"boolean","nullable":true},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"WorkspacePolicyRulesV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFieldsRules"},{"$ref":"#/components/schemas/NodeRelatedFlatFieldsRules"},{"$ref":"#/components/schemas/CommonItemizedFieldsRules"},{"$ref":"#/components/schemas/AdvancedFlatFieldsRules"},{"$ref":"#/components/schemas/ConnectivityRules"},{"$ref":"#/components/schemas/SecurityRules"},{"$ref":"#/components/schemas/ComputeRules"},{"$ref":"#/components/schemas/StorageRules"},{"$ref":"#/components/schemas/NonInferenceFlatFieldsRules"}]},"CommonFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridableRules"},{"$ref":"#/components/schemas/ContainerNonOverridableRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPodRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPGRules"}],"nullable":true,"type":"object"},"ContainerOverridableRules":{"description":"Container related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"command":{"$ref":"#/components/schemas/StringRules"},"args":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StringRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/StringRulesOptions"}],"nullable":true,"type":"object"},"StringRulesCommon":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true}}},"SourceOfRule":{"description":"This field is used by the system along with effective rules, in order to specify the org unit from which this effective rule has been derived. It should be left empty when sending apply policy requests.","required":["scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"isFallback":{"description":"source of this rule is the fallback policy","type":"boolean"}},"nullable":true,"type":"object"},"StringRulesOptions":{"properties":{"options":{"description":"Set of options that the value of the field must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"},"nullable":true}}},"StringOption":{"description":"One of the values that the field can be assigned to, when options police is applied on the field.","required":["value"],"properties":{"value":{"description":"The value that the field should hold","type":"string"},"displayed":{"description":"Textual description of the value. to be used by user interface applications.","type":"string","nullable":true}}},"ContainerNonOverridableRules":{"properties":{"image":{"$ref":"#/components/schemas/StringRules"},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicyRules"},"workingDir":{"$ref":"#/components/schemas/StringRules"},"createHomeDir":{"$ref":"#/components/schemas/BooleanRules"},"probes":{"$ref":"#/components/schemas/ProbesRules"}},"nullable":true,"type":"object"},"ImagePullPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ImagePullPolicyOptions"}],"nullable":true,"type":"object"},"ImagePullPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ImagePullPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"BooleanRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ProbesRules":{"properties":{"readiness":{"$ref":"#/components/schemas/ProbeRules"}},"nullable":true,"type":"object"},"ProbeRules":{"properties":{"initialDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"periodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"timeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"successThreshold":{"$ref":"#/components/schemas/IntegerRules"},"failureThreshold":{"$ref":"#/components/schemas/IntegerRules"},"handler":{"$ref":"#/components/schemas/ProbeHandlerRules"}},"nullable":true,"type":"object"},"IntegerRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"DefaultFromRule":{"properties":{"field":{"description":"The default of this field is taken from another field, with optional factor. The specified field must belong to the same workload section (compute, security, etc). For itemized field, the value of the field will be taken from the same instance.","type":"string","nullable":true},"factor":{"description":"Multiple the value of the fromField by this factor to get the value for this field For example, if factor is 2 and defaultFrom field has value of 8, the calculated default will be determined to be 16.","type":"number","format":"double","nullable":true,"default":1}},"nullable":true,"type":"object"},"ProbeHandlerRules":{"properties":{"httpGet":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"port":{"$ref":"#/components/schemas/IntegerRules"},"host":{"$ref":"#/components/schemas/StringRules"},"scheme":{"$ref":"#/components/schemas/StringRules"}}}},"nullable":true,"type":"object"},"ResourcesFlatFieldsPerPodRules":{"description":"Resource related parameters.","properties":{"nodeType":{"$ref":"#/components/schemas/StringRules"},"nodeAffinityRequired":{"$ref":"#/components/schemas/ArbitraryRules"},"podAffinity":{"$ref":"#/components/schemas/PodAffinityRules"}},"nullable":true,"type":"object"},"ArbitraryRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this arbitrary object is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"PodAffinityRules":{"properties":{"type":{"$ref":"#/components/schemas/PodAffinityTypeRules"},"key":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PodAffinityTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PodAffinityTypeOptions"}],"nullable":true,"type":"object"},"PodAffinityTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PodAffinityType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"type":"object"},"ResourcesFlatFieldsPerPGRules":{"description":"Resource related parameters.","properties":{"category":{"$ref":"#/components/schemas/StringRules"},"priorityClass":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NodeRelatedFlatFieldsRules":{"description":"Node pools related parameters.","properties":{"nodePools":{"$ref":"#/components/schemas/ArrayRules"}},"nullable":true,"type":"object"},"ArrayRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this array is mandatory. Mandatory array must include at least one item. default to false.","type":"boolean","nullable":true},"options":{"description":"Set of options that the value of each item of the array must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"}},"canEdit":{"description":"Whether the value of the array, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"CommonItemizedFieldsRules":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldRules"},{"$ref":"#/components/schemas/AdvancedItemizedRules"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldRules":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"InstancesRules":{"properties":{"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ItemRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canAdd":{"description":"Whether it is permitted to add items. Default to true.","type":"boolean","nullable":true},"locked":{"description":"Set of keys for items that are \"locked\", i.e. cannot be removed or deleted.","type":"array","items":{"type":"string"}}},"nullable":true,"type":"object"},"AdvancedItemizedRules":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldRules"},{"$ref":"#/components/schemas/LabelsFieldRules"},{"$ref":"#/components/schemas/ImagePullSecretsFieldRules"},{"$ref":"#/components/schemas/TolerationsFieldRules"}],"type":"object","nullable":true},"AnnotationsFieldRules":{"properties":{"annotations":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"LabelsFieldRules":{"properties":{"labels":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"ImagePullSecretsFieldRules":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ImagePullSecretsRulesAttributes"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRulesAttributes":{"description":"Rules for the attributes of imagePullSecrets","properties":{"name":{"$ref":"#/components/schemas/StringRules"},"userCredentials":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationsFieldRules":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsRules"}},"nullable":true,"type":"object"},"TolerationsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/TolerationRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"TolerationRules":{"description":"Toleration details.","properties":{"operator":{"$ref":"#/components/schemas/TolerationOperatorRules"},"key":{"$ref":"#/components/schemas/StringRules"},"value":{"$ref":"#/components/schemas/StringRules"},"effect":{"$ref":"#/components/schemas/TolerationEffectRules"},"seconds":{"$ref":"#/components/schemas/IntegerRules"},"exclude":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationOperatorRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationOperatorOptions"}],"nullable":true,"type":"object"},"TolerationOperatorOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationOperator"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"TolerationEffectRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationEffectOptions"}],"nullable":true,"type":"object"},"TolerationEffectOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationEffect"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"AdvancedFlatFieldsRules":{"properties":{"terminateAfterPreemption":{"$ref":"#/components/schemas/BooleanRules"},"autoDeletionTimeAfterCompletionSeconds":{"$ref":"#/components/schemas/IntegerRules"},"terminationGracePeriodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"backoffLimit":{"$ref":"#/components/schemas/IntegerRules"},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicyRule"}},"nullable":true,"type":"object"},"RestartPolicyRule":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/RestartPolicyOptions"}],"nullable":true,"type":"object"},"RestartPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for restartPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/RestartPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ConnectivityRules":{"properties":{"ports":{"$ref":"#/components/schemas/PortsRules"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsRules"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsRules"}},"nullable":true,"type":"object"},"PortsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PortRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PortRules":{"description":"Rules for port attributes","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"serviceType":{"$ref":"#/components/schemas/PortServiceTypeRules"},"customExternalPort":{"$ref":"#/components/schemas/BooleanRules"},"external":{"$ref":"#/components/schemas/IntegerRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PortServiceTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PortServiceTypeOptions"}],"nullable":true,"type":"object"},"PortServiceTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PortServiceType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ExposedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExposedUrlRules":{"description":"Rules for the attributed of exposedUrls","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"customUrl":{"$ref":"#/components/schemas/BooleanRules"},"url":{"$ref":"#/components/schemas/StringRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"RelatedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"RelatedUrlRules":{"description":"Rules for the attributes of relatedUrls","properties":{"url":{"$ref":"#/components/schemas/StringRules"},"type":{"$ref":"#/components/schemas/StringRules"},"name":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecurityRules":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFieldsRules"}},"nullable":true,"type":"object"},"SecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFieldsRules"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFieldsRules"}],"nullable":true,"type":"object"},"CommonSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridableRules"},{"$ref":"#/components/schemas/CommonSecurityOverridableRules"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridableRules":{"properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSourceRules"},"capabilities":{"$ref":"#/components/schemas/ArrayRules"},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileTypeRules"},"runAsNonRoot":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyRootFilesystem":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"UidGidSourceRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/UidGidSourceOptions"}],"nullable":true,"type":"object"},"UidGidSourceOptions":{"properties":{"options":{"description":"Limit the permitted values for uidGidSource to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/UidGidSource"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"SeccompProfileTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/SeccompProfileTypeOptions"}],"nullable":true,"type":"object"},"SeccompProfileTypeOptions":{"properties":{"options":{"description":"Limit the permitted values for secompProfileType to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/SeccompProfileType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"CommonSecurityOverridableRules":{"description":"Security related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"runAsUid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"runAsGid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"supplementalGroups":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"IntegerRulesOptional":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridableRules"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridableRules":{"properties":{"allowPrivilegeEscalation":{"$ref":"#/components/schemas/BooleanRules"},"hostIpc":{"$ref":"#/components/schemas/BooleanRules"},"hostNetwork":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ComputeRules":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsRules"}},"nullable":true,"type":"object"},"ComputeFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFieldsRules"},{"$ref":"#/components/schemas/ComputeItemizedFieldsRules"}],"nullable":true,"type":"object"},"ComputeFlatFieldsRules":{"properties":{"cpuCoreRequest":{"$ref":"#/components/schemas/NumberRules"},"cpuCoreLimit":{"$ref":"#/components/schemas/NumberRules"},"cpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"cpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"},"largeShmRequest":{"$ref":"#/components/schemas/BooleanRules"},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestRules"},"migProfile":{"$ref":"#/components/schemas/MigProfileRules","deprecated":true},"gpuDevicesRequest":{"$ref":"#/components/schemas/IntegerRules"},"gpuPortionRequest":{"$ref":"#/components/schemas/NumberRules"},"gpuPortionLimit":{"$ref":"#/components/schemas/NumberRules"},"gpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"gpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"}},"nullable":true,"type":"object"},"NumberRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"number","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"number","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=3, step=0.25 implies that the values the field can hold are 2, 2.25, 2.5 and 3.","type":"number","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"QuantityRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"max":{"description":"The maximum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"GpuRequestRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/GpuRequestOptions"}],"nullable":true,"type":"object"},"GpuRequestOptions":{"properties":{"options":{"description":"Limit the permitted values for gpuRequest to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/GpuRequestType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"MigProfileRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/MigProfileOptions"}],"nullable":true,"type":"object"},"MigProfileOptions":{"properties":{"options":{"description":"Limit the permitted values for migProfile to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/MigProfile"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object","deprecated":true},"ComputeItemizedFieldsRules":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesRules"}},"nullable":true,"type":"object"},"ExtendedResourcesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResourceRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExtendedResourceRules":{"description":"Rules for the attributes of extendedResources","properties":{"quantity":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StorageRules":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsRules"}},"nullable":true,"type":"object"},"StorageFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsRules"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsRules"}],"nullable":true,"type":"object"},"CommonStorageFieldsRules":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesRules"},"pvc":{"$ref":"#/components/schemas/PvcsRules"},"hostPath":{"$ref":"#/components/schemas/HostPathsRules"},"nfs":{"$ref":"#/components/schemas/NfssRules"},"git":{"$ref":"#/components/schemas/GitsRules"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsRules"},"secretVolume":{"$ref":"#/components/schemas/SecretsRules"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsRules"}},"nullable":true,"type":"object"},"DataVolumesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"DataVolumeRules":{"properties":{"id":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PvcsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PvcRules":{"properties":{"claimName":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"claimInfo":{"$ref":"#/components/schemas/ClaimInfoRules"}},"nullable":true,"type":"object"},"ClaimInfoRules":{"properties":{"size":{"$ref":"#/components/schemas/StringRules"},"storageClass":{"$ref":"#/components/schemas/StringRules"},"accessModes":{"$ref":"#/components/schemas/PvcAccessModesRules"}},"nullable":true,"type":"object"},"PvcAccessModesRules":{"description":"Rules for access mode(s) for a newly created PVC.","properties":{"readWriteOnce":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyMany":{"$ref":"#/components/schemas/BooleanRules"},"readWriteMany":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"HostPathsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"HostPathRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagationRules"}},"nullable":true,"type":"object"},"HostPathMountPropagationRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/HostPathMountPropagationOptions"}],"nullable":true,"type":"object"},"HostPathMountPropagationOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/HostPathMountPropagation"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}}},"NfssRules":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"NfsRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"server":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"GitsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/GitRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"GitRules":{"properties":{"repository":{"$ref":"#/components/schemas/StringRules"},"branch":{"$ref":"#/components/schemas/StringRules"},"revision":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ConfigMapsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ConfigMapRules":{"properties":{"configMap":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"subPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"SecretRules":{"properties":{"secret":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"EmptyDirsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"EmptyDirRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"medium":{"$ref":"#/components/schemas/StringRules"},"sizeLimit":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceStorageFieldsRules":{"properties":{"s3":{"$ref":"#/components/schemas/S3sRules"}},"nullable":true,"type":"object"},"S3sRules":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Rules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"S3Rules":{"properties":{"bucket":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"url":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridableRules"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridableRules":{"properties":{"tty":{"$ref":"#/components/schemas/BooleanRules"},"stdin":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ImposedAssets":{"description":"a list of datasource assets to import into the policy. these datasources will be included in any workload that will be created in the scope of the policy.","type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"WorkspacePolicyV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyMeta"},"policy":{"$ref":"#/components/schemas/WorkspacePolicyDefaultsAndRulesV2"},"effective":{"$ref":"#/components/schemas/WorkspacePolicyDefaultsAndRulesV2"},"effectiveUpdatedAt":{"$ref":"#/components/schemas/Timestamp"}},"nullable":true,"type":"object"},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"Timestamp":{"description":"The time at which an event occurred. e.g. the time an effective policy has been updated","type":"string","minLength":1,"format":"date-time"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy/workspaces":{"put":{"summary":"Overwrite a workspace policy.","description":"Ue to apply a workspace policy for a given organizational unit.","operationId":"overwrite_workspace_policy_v2","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/ValidateOnly"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspacePolicyOverwriteRequestV2"}}}},"responses":{"200":{"description":"Policy applied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspacePolicyV2"}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Delete a workspace policy.

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

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"PolicyScope":{"name":"scope","in":"query","required":true,"description":"The scope that the policy relates to.","schema":{"type":"string","enum":["tenant","cluster","department","project"]}},"FilterByDepartment":{"name":"departmentId","in":"query","description":"Filter using the department id.","required":false,"schema":{"type":"string"}},"FilterByProject":{"name":"projectId","in":"query","description":"project id to filter by","required":false,"schema":{"type":"string"}},"FilterByCluster":{"name":"clusterId","in":"query","description":"Filter using the Universally Unique Identifier (UUID) of the cluster.","required":false,"schema":{"type":"string","format":"uuid"}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404NotFound":{"description":"The specified resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}}},"paths":{"/api/v2/policy/workspaces":{"delete":{"summary":"Delete a workspace policy.","description":"Use to delete a workspace policy for a given organizational unit.","operationId":"delete_workspace_policy","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/PolicyScope"},{"$ref":"#/components/parameters/FilterByDepartment"},{"$ref":"#/components/parameters/FilterByProject"},{"$ref":"#/components/parameters/FilterByCluster"}],"responses":{"204":{"description":"The policy was deleted successfully."},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"404":{"$ref":"#/components/responses/404NotFound"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Update a workspace policy.

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

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"ValidateOnly":{"name":"validateOnly","in":"query","required":false,"description":"Validate the given policy payload without applying it","schema":{"type":"boolean"}}},"schemas":{"WorkspacePolicyChangeRequestV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyCreationFields"},"policy":{"$ref":"#/components/schemas/WorkspacePolicyDefaultsAndRulesV2"},"reset":{"$ref":"#/components/schemas/FieldsToReset"}},"type":"object"},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"WorkspacePolicyDefaultsAndRulesV2":{"properties":{"defaults":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFields"},{"$ref":"#/components/schemas/NodeRelatedFlatFields"},{"$ref":"#/components/schemas/CommonItemizedDefaults"},{"$ref":"#/components/schemas/AdvancedFlatFields"},{"$ref":"#/components/schemas/ConnectivityDefaults"},{"$ref":"#/components/schemas/Security"},{"$ref":"#/components/schemas/ComputeDefaults"},{"$ref":"#/components/schemas/StorageDefaults"},{"$ref":"#/components/schemas/NonInferenceFlatFields"}],"nullable":true,"type":"object"},"rules":{"allOf":[{"$ref":"#/components/schemas/WorkspacePolicyRulesV2"}],"nullable":true,"type":"object"},"imposedAssets":{"$ref":"#/components/schemas/ImposedAssets"},"status":{"$ref":"#/components/schemas/PolicyValidationStatus"}},"nullable":true,"type":"object"},"CommonFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridable"},{"$ref":"#/components/schemas/ContainerNonOverridable"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPod"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPG"}],"nullable":true,"type":"object"},"ContainerOverridable":{"description":"Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"command":{"description":"A command to the server as the entry point of the container running the workload.","type":"string","minLength":1,"nullable":true},"args":{"description":"Arguments to the command that the container running the workload executes.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ContainerNonOverridable":{"description":"Container non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"image":{"description":"Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a workload.","type":"string","minLength":1,"nullable":true},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicy"},"workingDir":{"description":"Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.","type":"string","minLength":1,"nullable":true},"createHomeDir":{"description":"When set to `true`, creates a home directory for the container.","type":"boolean","nullable":true},"probes":{"$ref":"#/components/schemas/Probes"}},"nullable":true,"type":"object"},"ImagePullPolicy":{"description":"Image pull policy. Defaults to `Always` if `:latest` tag is specified, otherwise it is `IfNotPresent`.","type":"string","minLength":1,"enum":["Always","Never","IfNotPresent"],"nullable":true},"Probes":{"description":"Probes are used to determine if the container is healthy and ready to accept traffic.","type":"object","properties":{"readiness":{"$ref":"#/components/schemas/Probe"}},"nullable":true},"Probe":{"type":"object","properties":{"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness or readiness probes are initiated.","type":"integer","format":"int32","minimum":0,"nullable":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe.","type":"integer","format":"int32","minimum":1,"nullable":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out.","type":"integer","format":"int32","minimum":1,"nullable":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed.","type":"integer","format":"int32","minimum":1,"nullable":true},"failureThreshold":{"description":"When a probe fails, the number of times to try before giving up.","type":"integer","format":"int32","minimum":1,"nullable":true},"handler":{"$ref":"#/components/schemas/ProbeHandler"}},"nullable":true},"ProbeHandler":{"description":"The action taken to determine the health of the container. (mandatory)","type":"object","properties":{"httpGet":{"description":"An action based on HTTP Get requests.","type":"object","properties":{"path":{"description":"Path to access on the HTTP server, defaults to /.","type":"string","pattern":"^(\\x2F[a-zA-Z0-9\\-_.\\x2F]*)?$","nullable":true},"port":{"description":"Number of the port to access on the container.","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"host":{"description":"Host name to connect to, defaults to the pod IP.","type":"string","format":"hostname","nullable":true},"scheme":{"$ref":"#/components/schemas/ProbeHandlerScheme"}}}},"nullable":true},"ProbeHandlerScheme":{"description":"Scheme to use for connecting to the host, defaults to HTTP.","type":"string","enum":["HTTP","HTTPS"],"nullable":true},"ResourcesFlatFieldsPerPod":{"description":"Resource parameters.","properties":{"nodeType":{"description":"Nodes (machines), or a group of nodes on which the workload will run. To use this feature, your Administrator will need to label nodes. For more information, see [Group Nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/researcher-setup/limit-to-node-group). When using this flag with with Project-based affinity, it refines the list of allowable node groups set in the Project. For more information, see [Projects](https://docshub.run.ai/guides/platform-management/aiinitiatives/organization/projects).","type":"string","minLength":1,"nullable":true},"nodeAffinityRequired":{"$ref":"#/components/schemas/NodeAffinityRequired"},"podAffinity":{"$ref":"#/components/schemas/PodAffinity"}},"nullable":true,"type":"object"},"NodeAffinityRequired":{"type":"object","description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","properties":{"nodeSelectorTerms":{"description":"A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/components/schemas/NodeSelectorTerm"}}},"nullable":true},"NodeSelectorTerm":{"type":"object","description":"A null or empty node selector term matches no objects. The requirements of them are ANDed.","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"$ref":"#/components/schemas/MatchExpression"}}},"nullable":true},"MatchExpression":{"type":"object","description":"A selector that contains values, a key, and an operator that relates the key and values.","properties":{"key":{"description":"The label key that the selector applies to (mandatory).","type":"string"},"operator":{"$ref":"#/components/schemas/MatchExpressionOperator"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.","type":"array","items":{"type":"string"}}},"required":["key","operator"],"nullable":true},"MatchExpressionOperator":{"description":"Represents a key's relationship to a set of values (mandatory).","type":"string","enum":["In","NotIn","Exists","DoesNotExist","Gt","Lt"]},"PodAffinity":{"description":"Pod affinity scheduling rules (e.g. co-locate this workload in the same node, zone, etc. as some other workloads).","type":"object","properties":{"type":{"$ref":"#/components/schemas/PodAffinityType"},"key":{"description":"The label key to use. (mandatory)","type":"string","nullable":true}},"nullable":true},"PodAffinityType":{"description":"The affinity type, required or preferred. (mandatory)","type":"string","enum":["Required","Preferred"],"nullable":true},"ResourcesFlatFieldsPerPG":{"description":"Resource parameters.","properties":{"category":{"$ref":"#/components/schemas/Category"},"priorityClass":{"$ref":"#/components/schemas/PriorityClass"}},"nullable":true,"type":"object"},"Category":{"description":"Specify the workload category assigned to the workload. Categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.","type":"string","nullable":true},"PriorityClass":{"description":"Specifies the priority class for the workload.  Valid values are: very-low, low, medium-low, medium, medium-high, high, very-high.  You can use this parameter to adjust the workload's scheduling behavior.  Each workload type has a default priority.  To view the default priority for each workload type, use the GET /workload-types endpoint.","type":"string","nullable":true},"NodeRelatedFlatFields":{"description":"Node related parameters.","properties":{"nodePools":{"description":"A prioritized list of node pools for the scheduler to run the workload on. The scheduler will always try to use the first node pool before moving to the next one if the first is not available.","type":"array","items":{"type":"string"},"nullable":true}},"nullable":true,"type":"object"},"CommonItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldDefaults"},{"$ref":"#/components/schemas/AdvancedItemizedDefaults"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldDefaults":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/EnvironmentVariablesDefaults"}},"nullable":true,"type":"object"},"EnvironmentVariablesDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/EnvironmentVariables"}},"nullable":true,"type":"object"},"EnvironmentVariables":{"description":"Set of environment variables to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"nullable":true},"EnvironmentVariable":{"description":"Details of an environment variable which is populated into the container.","properties":{"name":{"description":"The name of the environment variable. (mandatory)","type":"string","minLength":1,"nullable":true},"value":{"description":"The value of the environment variable. (mutually exclusive with secret, credential, configMap and podFieldRef)","type":"string","nullable":true},"secret":{"$ref":"#/components/schemas/EnvironmentVariableSecret"},"configMap":{"$ref":"#/components/schemas/EnvironmentVariableConfigMap"},"podFieldRef":{"$ref":"#/components/schemas/EnvironmentVariablePodFieldReference"},"exclude":{"description":"Use 'true' in case the environment variable is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true},"description":{"description":"Description of the environment variable.","type":"string","nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableSecret":{"description":"Details of the secret and key use to populate the environment variable","properties":{"name":{"description":"The name of the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableConfigMap":{"description":"Details of the configMap and key use to populate the environment variable","properties":{"name":{"description":"The name of the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariablePodFieldReference":{"description":"Details of the field-reference and key use to populate the environment variable","properties":{"path":{"description":"The field path resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"AdvancedItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldDefaults"},{"$ref":"#/components/schemas/LabelsFieldDefaults"},{"$ref":"#/components/schemas/ImagePullSecretsFieldDefaults"},{"$ref":"#/components/schemas/TolerationsFieldDefaults"}],"type":"object","nullable":true},"AnnotationsFieldDefaults":{"properties":{"annotations":{"$ref":"#/components/schemas/AnnotationsDefaults"}},"nullable":true,"type":"object"},"AnnotationsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Annotations"}},"nullable":true,"type":"object"},"Annotations":{"description":"Set of annotations to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Annotation"},"nullable":true},"Annotation":{"description":"Annotation details to be populated into the container.","properties":{"name":{"description":"The name of the annotation (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the annotation.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the annotation is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"LabelsFieldDefaults":{"properties":{"labels":{"$ref":"#/components/schemas/LabelsDefaults"}},"nullable":true,"type":"object"},"LabelsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Labels"}},"nullable":true,"type":"object"},"Labels":{"description":"Set of labels to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Label"},"nullable":true},"Label":{"description":"Label details to be populated into the container.","properties":{"name":{"description":"The name of the label (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the label.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ImagePullSecretsFieldDefaults":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsDefaults"}},"nullable":true,"type":"object"},"ImagePullSecretsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/ImagePullSecrets"}},"nullable":true,"type":"object"},"ImagePullSecrets":{"description":"A list of references to Kubernetes secrets in the same namespace used for pulling container images.","type":"array","items":{"$ref":"#/components/schemas/ImagePullSecret"},"nullable":true},"ImagePullSecret":{"description":"A reference to a secret in the same namespace used to pull container images.","properties":{"name":{"type":"string","description":"The name of the Kubernetes secret containing the image pull credentials."},"userCredential":{"type":"boolean","description":"Indicates whether the secret is a user credential. Set to true if the secret was created by the user and is only accessible by them.","nullable":true},"exclude":{"description":"Use 'true' in case the secret is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"TolerationsFieldDefaults":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsDefaults"}},"nullable":true,"type":"object"},"TolerationsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Toleration"},"instances":{"$ref":"#/components/schemas/Tolerations"}},"nullable":true,"type":"object"},"Toleration":{"description":"Toleration details.","properties":{"name":{"description":"The name of the toleration.","type":"string","minLength":1,"nullable":true},"operator":{"$ref":"#/components/schemas/TolerationOperator"},"key":{"description":"The taint key that the toleration applies to. (mandatory)","type":"string","nullable":true},"value":{"description":"The taint value the toleration matches to. Mandatory if operator is Exists, forbidden otherwise.","type":"string","nullable":true},"effect":{"$ref":"#/components/schemas/TolerationEffect"},"seconds":{"description":"The period of time the toleration tolerates the taint. Valid only if effect is NoExecute. taint.","type":"integer","minimum":1,"nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TolerationOperator":{"description":"A key's relationship to the value. Equal uses key and value. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. (mandatory)","type":"string","enum":["Equal","Exists"],"nullable":true},"TolerationEffect":{"description":"The taint effect to match. (mandatory)","type":"string","enum":["NoSchedule","NoExecute","PreferNoSchedule","Any"],"nullable":true},"Tolerations":{"description":"Set of tolerations to apply to the workload.","type":"array","items":{"$ref":"#/components/schemas/Toleration"},"nullable":true},"AdvancedFlatFields":{"properties":{"terminateAfterPreemption":{"description":"Indicates if the job should be terminated by the system after it has been preempted.","type":"boolean","nullable":true},"autoDeletionTimeAfterCompletionSeconds":{"description":"Specifies the duration after which a finished workload (completed or failed) will be automatically deleted. The default is 30 days.","format":"int64","type":"integer","nullable":true},"terminationGracePeriodSeconds":{"description":"Duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down).","format":"int64","type":"integer","minimum":0,"nullable":true},"backoffLimit":{"description":"Specifies the number of retries before marking a workload as failed (not applicable to Inference workloads). The default value is 6.","format":"int64","type":"integer","nullable":true},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicy"}},"nullable":true,"type":"object"},"RestartPolicy":{"description":"Specify the restart policy of the workload pods. Default is empty, which is determine by the framework default","type":"string","minLength":1,"enum":["Always","Never","OnFailure"],"nullable":true},"ConnectivityDefaults":{"properties":{"ports":{"$ref":"#/components/schemas/PortsDefaults"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsDefaults"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsDefaults"}},"nullable":true,"type":"object"},"PortsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Port"},"instances":{"$ref":"#/components/schemas/Ports"}},"nullable":true,"type":"object"},"Port":{"description":"A port for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"serviceType":{"$ref":"#/components/schemas/PortServiceType"},"external":{"description":"The external port which allows a connection to the container port. If not specified, the port will be auto-generated by the system..","type":"integer","format":"int32","nullable":true},"toolType":{"description":"The tool type that runs on this port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this port.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PortServiceType":{"description":"The service type of the port (mandatory).","type":"string","enum":["LoadBalancer","NodePort","ClusterIP"],"nullable":true},"Ports":{"description":"Set of container ports that the workload exposes.","type":"array","items":{"$ref":"#/components/schemas/Port"},"nullable":true},"ExposedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrl"},"instances":{"$ref":"#/components/schemas/ExposedUrls"}},"nullable":true,"type":"object"},"ExposedUrl":{"description":"A URL for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","nullable":true},"url":{"description":"The URL for connecting to the container port. If not specified, the URL will be auto-generated by the system..","type":"string","nullable":true},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"toolType":{"description":"The tool type that runs on this container port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this url.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the instance is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExposedUrls":{"description":"Set of container ports that the workload exposes via URLs.","type":"array","items":{"$ref":"#/components/schemas/ExposedUrl"},"nullable":true},"RelatedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrl"},"instances":{"$ref":"#/components/schemas/RelatedUrls"}},"nullable":true,"type":"object"},"RelatedUrl":{"description":"A URL that is related to the workload. For example, a URL to an external server providing statistics or logging about the workload.","properties":{"url":{"description":"The URL for connecting an external service related to the workload. (mandatory)","type":"string","nullable":true},"type":{"description":"The type of service that the url provides. For example, wandb (Weights & Biases). (mandatory)","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"RelatedUrls":{"description":"Set of URLs that are related to the workload.","type":"array","items":{"$ref":"#/components/schemas/RelatedUrl"},"nullable":true},"Security":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFields"}},"nullable":true,"type":"object"},"SecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFields"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFields"}],"nullable":true,"type":"object"},"CommonSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridable"},{"$ref":"#/components/schemas/CommonSecurityOverridable"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridable":{"description":"Security non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSource"},"capabilities":{"description":"Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.","type":"array","items":{"$ref":"#/components/schemas/Capability"},"nullable":true},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileType"},"runAsNonRoot":{"description":"Force the container to run as a non-root user.","type":"boolean","nullable":true},"readOnlyRootFilesystem":{"description":"If true, mounts the container's root filesystem as read-only.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"UidGidSource":{"description":"Indicate the way to determine the user and group ids of the container. The options are a. `fromTheImage` - user and group ids are determined by the docker image that the container runs. this is the default option. b. `custom` - user and group ids can be specified in the environment asset and/or the workload creation request. c. `idpToken` - user and group ids are determined according to the identity provider (idp) access token. This option is intended for internal use of the environment UI form. For more information, see [User Identity](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/runai-setup/config/non-root-containers/).","type":"string","enum":["fromTheImage","fromIdpToken","custom"],"nullable":true},"Capability":{"type":"string","enum":["AUDIT_CONTROL","AUDIT_READ","AUDIT_WRITE","BLOCK_SUSPEND","CHOWN","DAC_OVERRIDE","DAC_READ_SEARCH","FOWNER","FSETID","IPC_LOCK","IPC_OWNER","KILL","LEASE","LINUX_IMMUTABLE","MAC_ADMIN","MAC_OVERRIDE","MKNOD","NET_ADMIN","NET_BIND_SERVICE","NET_BROADCAST","NET_RAW","SETGID","SETFCAP","SETPCAP","SETUID","SYS_ADMIN","SYS_BOOT","SYS_CHROOT","SYS_MODULE","SYS_NICE","SYS_PACCT","SYS_PTRACE","SYS_RAWIO","SYS_RESOURCE","SYS_TIME","SYS_TTY_CONFIG","SYSLOG","WAKE_ALARM"]},"SeccompProfileType":{"description":"Indicates which kind of seccomp profile will be applied to the container. The options are a. `RuntimeDefault` - the container runtime default profile should be used. b. `Unconfined` - no profile should be applied. c. `Localhost` is not yet supported by Run:ai.","type":"string","enum":["RuntimeDefault","Unconfined","Localhost"],"nullable":true},"CommonSecurityOverridable":{"description":"Security overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"runAsUid":{"description":"The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsUid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"runAsGid":{"description":"The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsGid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"supplementalGroups":{"description":"Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled. Using an empty string implies reverting the supplementary groups of the image.","type":"string","nullable":true}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridable"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridable":{"description":"Security related fields. When used in assets context, those are environment asset fields that cannot be override in the submit workload request.","properties":{"allowPrivilegeEscalation":{"description":"Allow the container running the workload and all launched processes to gain additional privileges after the workload starts. For more information consult the User Identity in Container guide at https://docs.run.ai/admin/runai-setup/config/non-root-containers/","type":"boolean","nullable":true},"hostIpc":{"description":"Whether to enable host IPC. Defaults to false.","type":"boolean","nullable":true},"hostNetwork":{"description":"Whether to enable host networking. Default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ComputeDefaults":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsDefaults"}},"nullable":true,"type":"object"},"ComputeFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFields"},{"$ref":"#/components/schemas/ComputeItemizedFieldsDefaults"}],"nullable":true,"type":"object"},"ComputeFlatFields":{"properties":{"gpuDevicesRequest":{"description":"Requested number of GPU devices. Currently if more than one device is requested, it is not possible to provide values for gpuMemory, gpuPortion or migProfile [deprecated].","type":"integer","format":"int32","nullable":true,"minimum":0},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestType"},"gpuPortionRequest":{"description":"Required if and only if gpuRequestType is portion. States the portion of the GPU to allocate for the created workload, per GPU device, between 0 and 1. The default is no allocated GPUs.","type":"number","format":"double","nullable":true,"minimum":0},"gpuPortionLimit":{"description":"Limitations on the portion consumed by the workload, per GPU device. The system guarantees The gpuPotionLimit must be no less than the gpuPortionRequest.","type":"number","format":"double","nullable":true,"minimum":0},"gpuMemoryRequest":{"description":"Required if and only if gpuRequestType is memory. States the GPU memory to allocate for the created workload, per GPU device. Note that the workload will not be scheduled unless the system can guarantee this amount of GPU memory to the workload.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"gpuMemoryLimit":{"description":"Limitation on the memory consumed by the workload, per GPU device. The system guarantees The gpuMemoryLimit must be no less than gpuMemoryRequest.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"migProfile":{"$ref":"#/components/schemas/MigProfile","depracted":true},"cpuCoreRequest":{"description":"CPU units to allocate for the created workload (0.5, 1, .etc). The workload will receive at least this amount of CPU. Note that the workload will not be scheduled unless the system can guarantee this amount of CPUs to the workload.","format":"double","type":"number","nullable":true,"minimum":0},"cpuCoreLimit":{"description":"Limitations on the number of CPUs consumed by the workload (0.5, 1, .etc). The system guarantees that this workload will not be able to consume more than this amount of CPUs.","format":"double","type":"number","nullable":true,"minimum":0},"cpuMemoryRequest":{"description":"The amount of CPU memory to allocate for this workload (1G, 20M, .etc). The workload will receive at least this amount of memory. Note that the workload will not be scheduled unless the system can guarantee this amount of memory to the workload","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"cpuMemoryLimit":{"description":"Limitations on the CPU memory to allocate for this workload (1G, 20M, .etc). The system guarantees that this workload will not be able to consume more than this amount of memory. The workload will receive an error when trying to allocate more memory than this limit.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"largeShmRequest":{"description":"A large /dev/shm device to mount into a container running the created workload. An shm is a shared file system mounted on RAM.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"GpuRequestType":{"description":"Sets the unit type for GPU resources requests. Stated in terms of portion, memory or  mig profile [deprecated]. Sets the unit type for other GPU request fields. If `gpuDevicesRequest > 1`, only `portion` is supported. If `gpuDeviceRequest = 1`, the request type can be stated as `portion`, `memory` or `migProfile` [deprecated].","type":"string","minLength":1,"enum":["portion","memory","migProfile"],"nullable":true},"MigProfile":{"description":"Required only if `gpuRequestType` is `migProfile`. This states the memory profile to be used for the workload running NVIDIA Multi-Instance GPU (MIG) technology.","type":"string","deprecated":true,"minLength":1,"enum":["1g.5gb","1g.10gb","2g.10gb","2g.20gb","3g.20gb","3g.40gb","4g.20gb","4g.40gb","7g.40gb","7g.80gb"],"nullable":true},"ComputeItemizedFieldsDefaults":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesDefaults"}},"nullable":true,"type":"object"},"ExtendedResourcesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResource"},"instances":{"$ref":"#/components/schemas/ExtendedResources"}},"nullable":true,"type":"object"},"ExtendedResource":{"description":"Quantity of an extended resource.","properties":{"resource":{"description":"The name of the extended resource (mandatory)","type":"string","minLength":1,"nullable":true},"quantity":{"description":"The requested quantity for the resource.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the extended resource is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExtendedResources":{"description":"Extended resources and their quantity.","type":"array","items":{"$ref":"#/components/schemas/ExtendedResource"},"nullable":true},"StorageDefaults":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsDefaults"}},"nullable":true,"type":"object"},"StorageFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsDefaults"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsDefaults"}],"nullable":true,"type":"object"},"CommonStorageFieldsDefaults":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesDefaults"},"pvc":{"$ref":"#/components/schemas/PvcsDefaults"},"hostPath":{"$ref":"#/components/schemas/HostPathsDefaults"},"nfs":{"$ref":"#/components/schemas/NfssDefaults"},"git":{"$ref":"#/components/schemas/GitsDefaults"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsDefaults"},"secretVolume":{"$ref":"#/components/schemas/SecretsDefaults"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsDefaults"}},"nullable":true,"type":"object"},"DataVolumesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeInstance"},"instances":{"$ref":"#/components/schemas/DataVolumeItems"}},"nullable":true,"type":"object"},"DataVolumeInstance":{"allOf":[{"$ref":"#/components/schemas/DataVolume"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"DataVolume":{"properties":{"id":{"description":"The unique identifier of the data volume. (mandatory)","type":"string","format":"uuid","nullable":true},"mountPath":{"description":"The path where the data volume will be mounted. (mandatory)","type":"string","nullable":true}},"nullable":true,"type":"object"},"ExcludeField":{"properties":{"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"type":"object","nullable":true},"DataVolumeItems":{"description":"Set of data volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/DataVolumeInstance"},"nullable":true},"PvcsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcInstance"},"instances":{"$ref":"#/components/schemas/PvcItems"}},"nullable":true,"type":"object"},"PvcInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Pvc"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"StorageInstanceName":{"properties":{"name":{"description":"unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"Pvc":{"allOf":[{"$ref":"#/components/schemas/PvcFieldsUpdatable"},{"$ref":"#/components/schemas/PvcFieldsNonUpdatable"}]},"PvcFieldsUpdatable":{"properties":{"path":{"description":"Local path within the workload to which the PVC bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"PvcFieldsNonUpdatable":{"properties":{"existingPvc":{"description":"Verify existing PVC. PVC is assumed to exist when set to `true`. If set to `false`, the PVC will be created, if it does not exist.","type":"boolean","default":false,"nullable":true},"claimName":{"description":"Name for the PVC. Allow referencing it across workloads. If not provided, a name based on the workload name and scope will be auto-generated.","type":"string","minLength":1,"maxLength":63,"nullable":true},"readOnly":{"description":"Permit only read access to PVC.","type":"boolean","default":false,"nullable":true},"ephemeral":{"description":"Use `true` to set PVC to ephemeral. If set to `true`, the PVC will be deleted when the workload is stopped. Not supported for inference workloads.","type":"boolean","default":false,"nullable":true},"claimInfo":{"$ref":"#/components/schemas/ClaimInfo"},"dataSharing":{"description":"use `true` to share the PVC data to all projects under the selected scope.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"ClaimInfo":{"description":"Claim information for the newly created PVC. The information should not be provided when attempting to use existing PVC.","properties":{"size":{"$ref":"#/components/schemas/PvcClaimSize"},"storageClass":{"description":"Storage class name to associate with the PVC. This parameter may be omitted if there is a single storage class in the system, or you are using the default storage class. For more information, see [Storage class](https://kubernetes.io/docs/concepts/storage/storage-classes).","type":"string","minLength":1,"nullable":true},"accessModes":{"$ref":"#/components/schemas/PvcAccessModes"},"volumeMode":{"$ref":"#/components/schemas/PvcVolumeMode"},"addedAttrValues":{"$ref":"#/components/schemas/PvcAddedAttrValues"}},"nullable":true,"type":"object"},"PvcClaimSize":{"description":"Requested size for the PVC. Mandatory when existingPvc is false. Recommended sizes: TB/GB/MB/TIB/GIB/MIB","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"PvcAccessModes":{"description":"Requested access mode(s) for the newly created PVC.","properties":{"readWriteOnce":{"description":"Requesting claim that can be mounted in read/write mode to exactly one host. This is the default access mode.","type":"boolean","default":true,"nullable":true},"readOnlyMany":{"description":"Requesting claim that can be mounted in read-only mode to many hosts.","type":"boolean","default":false,"nullable":true},"readWriteMany":{"description":"Requesting claim that can be mounted in read/write mode to many hosts.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PvcVolumeMode":{"description":"The volume mode required by the claim. Choose Filesystem (default) or Block.","type":"string","enum":["Filesystem","Block"],"nullable":true},"PvcAddedAttrValues":{"description":"an optional array of key-values pairs that are written as annotations on the created PVC. the allowed attributes are determined according to the storage class configuration (see k8s-objects-tracker for further info).","type":"array","items":{"$ref":"#/components/schemas/PvcAddedAttrValue"}},"PvcAddedAttrValue":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":63,"pattern":"^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$"},"value":{"type":"string"}}},"PvcItems":{"description":"Set of pvc persistent volume claims to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/PvcInstance"},"nullable":true},"HostPathsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathInstance"},"instances":{"$ref":"#/components/schemas/HostPathItems"}},"nullable":true,"type":"object"},"HostPathInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/HostPath"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"HostPath":{"properties":{"path":{"description":"Local path within the controller to which the host volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","default":true,"nullable":true},"mountPath":{"description":"The path that the host volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagation"}},"nullable":true,"type":"object"},"HostPathMountPropagation":{"description":"Share this volumes mount with other containers. If set to HostToContainer, this volume mount will receive all subsequent mounts that are mounted to this volume or any of its subdirectories. In case of multiple hostPath entries, this field should have the same value for all of them.","type":"string","enum":["None","HostToContainer"],"nullable":true},"HostPathItems":{"description":"Set of host paths to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/HostPathInstance"},"nullable":true},"NfssDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsInstance"},"instances":{"$ref":"#/components/schemas/NfsItems"}},"nullable":true,"type":"object"},"NfsInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Nfs"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Nfs":{"properties":{"path":{"description":"Path that is exported by the NFS server (mandatory). For more information, see [NFS](https://kubernetes.io/docs/concepts/storage/volumes#nfs).","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the NFS export to be mounted with read-only permissions.","type":"boolean","default":true,"nullable":true},"server":{"description":"The hostname or IP address of the NFS server. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"The path that the NFS volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"NfsItems":{"description":"Set of nfs volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/NfsInstance"},"nullable":true},"GitsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/GitInstance"},"instances":{"$ref":"#/components/schemas/GitItems"}},"nullable":true,"type":"object"},"GitInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/GitCommon"},{"$ref":"#/components/schemas/GitPassword"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"GitCommon":{"properties":{"repository":{"description":"URL to a remote Git repository. The content of this repository will be mapped to the container running the workload. (mandatory)","type":"string","minLength":1,"nullable":true},"branch":{"description":"Specific branch to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"revision":{"description":"Specific revision to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the Git repository will be mapped (mandatory).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitPassword":{"properties":{"passwordSecret":{"description":"Secret containing the credentials of the repository (needed for non public repository which requires authentication).","type":"string","minLength":1,"nullable":true},"secretKeyOfUser":{"description":"The key to use for loading the user name from the secret. The default is `User`.","type":"string","minLength":1,"nullable":true},"secretKeyOfPassword":{"description":"The key to use for loading the password from the secret. The default is `Password`.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitItems":{"description":"Set of git repositories to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/GitInstance"},"nullable":true},"ConfigMapsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapInstance"},"instances":{"$ref":"#/components/schemas/ConfigMapField"}},"nullable":true,"type":"object"},"ConfigMapInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/ConfigMap"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"ConfigMap":{"properties":{"configMap":{"description":"The name of the ConfigMap resource. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"Local path within the workload to which the ConfigMap will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ConfigMapField":{"description":"Set of config map volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/ConfigMapInstance"},"nullable":true},"SecretsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretInstance2"},"instances":{"$ref":"#/components/schemas/SecretItems1"}},"nullable":true,"type":"object"},"SecretInstance2":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Secret5"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Secret5":{"allOf":[{"$ref":"#/components/schemas/SecretFieldsUpdatable"},{"$ref":"#/components/schemas/SecretFieldsNonUpdatable"}]},"SecretFieldsUpdatable":{"properties":{"mountPath":{"description":"Local path within the workload to which the Secret will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretFieldsNonUpdatable":{"properties":{"secret":{"description":"The name of the Secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretItems1":{"description":"Set of secret volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/SecretInstance2"},"nullable":true},"EmptyDirsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirInstance"},"instances":{"$ref":"#/components/schemas/EmptyDirItems"}},"nullable":true,"type":"object"},"EmptyDirInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/EmptyDir"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"EmptyDir":{"properties":{"path":{"description":"Local path within the workload to which the EmptyDir volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"medium":{"description":"The type of storage medium for the volume. Use \"Memory\" for memory-backed storage, or leave empty for disk-backed storage.","type":"string","minLength":1,"nullable":true},"sizeLimit":{"description":"The total amount of local storage or memory required for the emptyDir volume. Specify using Kubernetes quantity format (e.g., 1G, 500Mi).","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true}},"nullable":true,"type":"object"},"EmptyDirItems":{"description":"A list of emptyDir volumes to mount in the workload.","type":"array","items":{"$ref":"#/components/schemas/EmptyDirInstance"},"nullable":true},"NonInferenceStorageFieldsDefaults":{"properties":{"s3":{"$ref":"#/components/schemas/S3sDefaults"}},"nullable":true,"type":"object"},"S3sDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Instance"},"instances":{"$ref":"#/components/schemas/S3Items"}},"nullable":true,"type":"object"},"S3Instance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/S3Common"},{"$ref":"#/components/schemas/S3AccessKey"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"S3Common":{"properties":{"bucket":{"description":"The name of the bucket. (mandatory)","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the S3 bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"url":{"description":"The url of the S3 service provider. The default is the URL of the Amazon AWS S3 service.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3AccessKey":{"properties":{"accessKeySecret":{"description":"Name of the secret containing credentials of the S3 bucket. Used for private S3 buckets.","type":"string","minLength":1,"nullable":true},"secretKeyOfAccessKeyId":{"description":"The key to use for loading the access key id from the secret. The default is `AccessKeyId`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true},"secretKeyOfSecretKey":{"description":"The key to use for loading the secret key from the secret. The default is `SecretKey`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3Items":{"description":"Set of s3 buckets to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/S3Instance"},"nullable":true},"NonInferenceFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridable"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridable":{"description":"Container non Inference overrideable fields. It adds properties which are not allowed for Inference containers","properties":{"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.","type":"boolean","nullable":true},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"WorkspacePolicyRulesV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFieldsRules"},{"$ref":"#/components/schemas/NodeRelatedFlatFieldsRules"},{"$ref":"#/components/schemas/CommonItemizedFieldsRules"},{"$ref":"#/components/schemas/AdvancedFlatFieldsRules"},{"$ref":"#/components/schemas/ConnectivityRules"},{"$ref":"#/components/schemas/SecurityRules"},{"$ref":"#/components/schemas/ComputeRules"},{"$ref":"#/components/schemas/StorageRules"},{"$ref":"#/components/schemas/NonInferenceFlatFieldsRules"}]},"CommonFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridableRules"},{"$ref":"#/components/schemas/ContainerNonOverridableRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPodRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPGRules"}],"nullable":true,"type":"object"},"ContainerOverridableRules":{"description":"Container related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"command":{"$ref":"#/components/schemas/StringRules"},"args":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StringRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/StringRulesOptions"}],"nullable":true,"type":"object"},"StringRulesCommon":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true}}},"SourceOfRule":{"description":"This field is used by the system along with effective rules, in order to specify the org unit from which this effective rule has been derived. It should be left empty when sending apply policy requests.","required":["scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"isFallback":{"description":"source of this rule is the fallback policy","type":"boolean"}},"nullable":true,"type":"object"},"StringRulesOptions":{"properties":{"options":{"description":"Set of options that the value of the field must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"},"nullable":true}}},"StringOption":{"description":"One of the values that the field can be assigned to, when options police is applied on the field.","required":["value"],"properties":{"value":{"description":"The value that the field should hold","type":"string"},"displayed":{"description":"Textual description of the value. to be used by user interface applications.","type":"string","nullable":true}}},"ContainerNonOverridableRules":{"properties":{"image":{"$ref":"#/components/schemas/StringRules"},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicyRules"},"workingDir":{"$ref":"#/components/schemas/StringRules"},"createHomeDir":{"$ref":"#/components/schemas/BooleanRules"},"probes":{"$ref":"#/components/schemas/ProbesRules"}},"nullable":true,"type":"object"},"ImagePullPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ImagePullPolicyOptions"}],"nullable":true,"type":"object"},"ImagePullPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ImagePullPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"BooleanRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ProbesRules":{"properties":{"readiness":{"$ref":"#/components/schemas/ProbeRules"}},"nullable":true,"type":"object"},"ProbeRules":{"properties":{"initialDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"periodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"timeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"successThreshold":{"$ref":"#/components/schemas/IntegerRules"},"failureThreshold":{"$ref":"#/components/schemas/IntegerRules"},"handler":{"$ref":"#/components/schemas/ProbeHandlerRules"}},"nullable":true,"type":"object"},"IntegerRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"DefaultFromRule":{"properties":{"field":{"description":"The default of this field is taken from another field, with optional factor. The specified field must belong to the same workload section (compute, security, etc). For itemized field, the value of the field will be taken from the same instance.","type":"string","nullable":true},"factor":{"description":"Multiple the value of the fromField by this factor to get the value for this field For example, if factor is 2 and defaultFrom field has value of 8, the calculated default will be determined to be 16.","type":"number","format":"double","nullable":true,"default":1}},"nullable":true,"type":"object"},"ProbeHandlerRules":{"properties":{"httpGet":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"port":{"$ref":"#/components/schemas/IntegerRules"},"host":{"$ref":"#/components/schemas/StringRules"},"scheme":{"$ref":"#/components/schemas/StringRules"}}}},"nullable":true,"type":"object"},"ResourcesFlatFieldsPerPodRules":{"description":"Resource related parameters.","properties":{"nodeType":{"$ref":"#/components/schemas/StringRules"},"nodeAffinityRequired":{"$ref":"#/components/schemas/ArbitraryRules"},"podAffinity":{"$ref":"#/components/schemas/PodAffinityRules"}},"nullable":true,"type":"object"},"ArbitraryRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this arbitrary object is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"PodAffinityRules":{"properties":{"type":{"$ref":"#/components/schemas/PodAffinityTypeRules"},"key":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PodAffinityTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PodAffinityTypeOptions"}],"nullable":true,"type":"object"},"PodAffinityTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PodAffinityType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"type":"object"},"ResourcesFlatFieldsPerPGRules":{"description":"Resource related parameters.","properties":{"category":{"$ref":"#/components/schemas/StringRules"},"priorityClass":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NodeRelatedFlatFieldsRules":{"description":"Node pools related parameters.","properties":{"nodePools":{"$ref":"#/components/schemas/ArrayRules"}},"nullable":true,"type":"object"},"ArrayRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this array is mandatory. Mandatory array must include at least one item. default to false.","type":"boolean","nullable":true},"options":{"description":"Set of options that the value of each item of the array must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"}},"canEdit":{"description":"Whether the value of the array, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"CommonItemizedFieldsRules":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldRules"},{"$ref":"#/components/schemas/AdvancedItemizedRules"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldRules":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"InstancesRules":{"properties":{"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ItemRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canAdd":{"description":"Whether it is permitted to add items. Default to true.","type":"boolean","nullable":true},"locked":{"description":"Set of keys for items that are \"locked\", i.e. cannot be removed or deleted.","type":"array","items":{"type":"string"}}},"nullable":true,"type":"object"},"AdvancedItemizedRules":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldRules"},{"$ref":"#/components/schemas/LabelsFieldRules"},{"$ref":"#/components/schemas/ImagePullSecretsFieldRules"},{"$ref":"#/components/schemas/TolerationsFieldRules"}],"type":"object","nullable":true},"AnnotationsFieldRules":{"properties":{"annotations":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"LabelsFieldRules":{"properties":{"labels":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"ImagePullSecretsFieldRules":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ImagePullSecretsRulesAttributes"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRulesAttributes":{"description":"Rules for the attributes of imagePullSecrets","properties":{"name":{"$ref":"#/components/schemas/StringRules"},"userCredentials":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationsFieldRules":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsRules"}},"nullable":true,"type":"object"},"TolerationsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/TolerationRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"TolerationRules":{"description":"Toleration details.","properties":{"operator":{"$ref":"#/components/schemas/TolerationOperatorRules"},"key":{"$ref":"#/components/schemas/StringRules"},"value":{"$ref":"#/components/schemas/StringRules"},"effect":{"$ref":"#/components/schemas/TolerationEffectRules"},"seconds":{"$ref":"#/components/schemas/IntegerRules"},"exclude":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationOperatorRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationOperatorOptions"}],"nullable":true,"type":"object"},"TolerationOperatorOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationOperator"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"TolerationEffectRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationEffectOptions"}],"nullable":true,"type":"object"},"TolerationEffectOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationEffect"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"AdvancedFlatFieldsRules":{"properties":{"terminateAfterPreemption":{"$ref":"#/components/schemas/BooleanRules"},"autoDeletionTimeAfterCompletionSeconds":{"$ref":"#/components/schemas/IntegerRules"},"terminationGracePeriodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"backoffLimit":{"$ref":"#/components/schemas/IntegerRules"},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicyRule"}},"nullable":true,"type":"object"},"RestartPolicyRule":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/RestartPolicyOptions"}],"nullable":true,"type":"object"},"RestartPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for restartPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/RestartPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ConnectivityRules":{"properties":{"ports":{"$ref":"#/components/schemas/PortsRules"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsRules"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsRules"}},"nullable":true,"type":"object"},"PortsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PortRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PortRules":{"description":"Rules for port attributes","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"serviceType":{"$ref":"#/components/schemas/PortServiceTypeRules"},"customExternalPort":{"$ref":"#/components/schemas/BooleanRules"},"external":{"$ref":"#/components/schemas/IntegerRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PortServiceTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PortServiceTypeOptions"}],"nullable":true,"type":"object"},"PortServiceTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PortServiceType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ExposedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExposedUrlRules":{"description":"Rules for the attributed of exposedUrls","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"customUrl":{"$ref":"#/components/schemas/BooleanRules"},"url":{"$ref":"#/components/schemas/StringRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"RelatedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"RelatedUrlRules":{"description":"Rules for the attributes of relatedUrls","properties":{"url":{"$ref":"#/components/schemas/StringRules"},"type":{"$ref":"#/components/schemas/StringRules"},"name":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecurityRules":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFieldsRules"}},"nullable":true,"type":"object"},"SecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFieldsRules"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFieldsRules"}],"nullable":true,"type":"object"},"CommonSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridableRules"},{"$ref":"#/components/schemas/CommonSecurityOverridableRules"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridableRules":{"properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSourceRules"},"capabilities":{"$ref":"#/components/schemas/ArrayRules"},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileTypeRules"},"runAsNonRoot":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyRootFilesystem":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"UidGidSourceRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/UidGidSourceOptions"}],"nullable":true,"type":"object"},"UidGidSourceOptions":{"properties":{"options":{"description":"Limit the permitted values for uidGidSource to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/UidGidSource"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"SeccompProfileTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/SeccompProfileTypeOptions"}],"nullable":true,"type":"object"},"SeccompProfileTypeOptions":{"properties":{"options":{"description":"Limit the permitted values for secompProfileType to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/SeccompProfileType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"CommonSecurityOverridableRules":{"description":"Security related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"runAsUid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"runAsGid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"supplementalGroups":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"IntegerRulesOptional":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridableRules"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridableRules":{"properties":{"allowPrivilegeEscalation":{"$ref":"#/components/schemas/BooleanRules"},"hostIpc":{"$ref":"#/components/schemas/BooleanRules"},"hostNetwork":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ComputeRules":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsRules"}},"nullable":true,"type":"object"},"ComputeFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFieldsRules"},{"$ref":"#/components/schemas/ComputeItemizedFieldsRules"}],"nullable":true,"type":"object"},"ComputeFlatFieldsRules":{"properties":{"cpuCoreRequest":{"$ref":"#/components/schemas/NumberRules"},"cpuCoreLimit":{"$ref":"#/components/schemas/NumberRules"},"cpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"cpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"},"largeShmRequest":{"$ref":"#/components/schemas/BooleanRules"},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestRules"},"migProfile":{"$ref":"#/components/schemas/MigProfileRules","deprecated":true},"gpuDevicesRequest":{"$ref":"#/components/schemas/IntegerRules"},"gpuPortionRequest":{"$ref":"#/components/schemas/NumberRules"},"gpuPortionLimit":{"$ref":"#/components/schemas/NumberRules"},"gpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"gpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"}},"nullable":true,"type":"object"},"NumberRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"number","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"number","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=3, step=0.25 implies that the values the field can hold are 2, 2.25, 2.5 and 3.","type":"number","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"QuantityRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"max":{"description":"The maximum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"GpuRequestRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/GpuRequestOptions"}],"nullable":true,"type":"object"},"GpuRequestOptions":{"properties":{"options":{"description":"Limit the permitted values for gpuRequest to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/GpuRequestType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"MigProfileRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/MigProfileOptions"}],"nullable":true,"type":"object"},"MigProfileOptions":{"properties":{"options":{"description":"Limit the permitted values for migProfile to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/MigProfile"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object","deprecated":true},"ComputeItemizedFieldsRules":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesRules"}},"nullable":true,"type":"object"},"ExtendedResourcesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResourceRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExtendedResourceRules":{"description":"Rules for the attributes of extendedResources","properties":{"quantity":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StorageRules":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsRules"}},"nullable":true,"type":"object"},"StorageFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsRules"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsRules"}],"nullable":true,"type":"object"},"CommonStorageFieldsRules":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesRules"},"pvc":{"$ref":"#/components/schemas/PvcsRules"},"hostPath":{"$ref":"#/components/schemas/HostPathsRules"},"nfs":{"$ref":"#/components/schemas/NfssRules"},"git":{"$ref":"#/components/schemas/GitsRules"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsRules"},"secretVolume":{"$ref":"#/components/schemas/SecretsRules"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsRules"}},"nullable":true,"type":"object"},"DataVolumesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"DataVolumeRules":{"properties":{"id":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PvcsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PvcRules":{"properties":{"claimName":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"claimInfo":{"$ref":"#/components/schemas/ClaimInfoRules"}},"nullable":true,"type":"object"},"ClaimInfoRules":{"properties":{"size":{"$ref":"#/components/schemas/StringRules"},"storageClass":{"$ref":"#/components/schemas/StringRules"},"accessModes":{"$ref":"#/components/schemas/PvcAccessModesRules"}},"nullable":true,"type":"object"},"PvcAccessModesRules":{"description":"Rules for access mode(s) for a newly created PVC.","properties":{"readWriteOnce":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyMany":{"$ref":"#/components/schemas/BooleanRules"},"readWriteMany":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"HostPathsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"HostPathRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagationRules"}},"nullable":true,"type":"object"},"HostPathMountPropagationRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/HostPathMountPropagationOptions"}],"nullable":true,"type":"object"},"HostPathMountPropagationOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/HostPathMountPropagation"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}}},"NfssRules":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"NfsRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"server":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"GitsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/GitRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"GitRules":{"properties":{"repository":{"$ref":"#/components/schemas/StringRules"},"branch":{"$ref":"#/components/schemas/StringRules"},"revision":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ConfigMapsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ConfigMapRules":{"properties":{"configMap":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"subPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"SecretRules":{"properties":{"secret":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"EmptyDirsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"EmptyDirRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"medium":{"$ref":"#/components/schemas/StringRules"},"sizeLimit":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceStorageFieldsRules":{"properties":{"s3":{"$ref":"#/components/schemas/S3sRules"}},"nullable":true,"type":"object"},"S3sRules":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Rules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"S3Rules":{"properties":{"bucket":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"url":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridableRules"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridableRules":{"properties":{"tty":{"$ref":"#/components/schemas/BooleanRules"},"stdin":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ImposedAssets":{"description":"a list of datasource assets to import into the policy. these datasources will be included in any workload that will be created in the scope of the policy.","type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"FieldsToReset":{"description":"set of fields in jsonpath format that is requested to clear their policy (default and rules)","type":"array","items":{"type":"string"}},"WorkspacePolicyV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyMeta"},"policy":{"$ref":"#/components/schemas/WorkspacePolicyDefaultsAndRulesV2"},"effective":{"$ref":"#/components/schemas/WorkspacePolicyDefaultsAndRulesV2"},"effectiveUpdatedAt":{"$ref":"#/components/schemas/Timestamp"}},"nullable":true,"type":"object"},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"Timestamp":{"description":"The time at which an event occurred. e.g. the time an effective policy has been updated","type":"string","minLength":1,"format":"date-time"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy/workspaces":{"patch":{"summary":"Update a workspace policy.","description":"Use to apply changes to workspace policy for a given organizational unit.","operationId":"update_workspace_policy_v2","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/ValidateOnly"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspacePolicyChangeRequestV2"}}}},"responses":{"200":{"description":"Policy applied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspacePolicyV2"}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Get a distributed policy.

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

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"PolicyScope":{"name":"scope","in":"query","required":true,"description":"The scope that the policy relates to.","schema":{"type":"string","enum":["tenant","cluster","department","project"]}},"FilterByDepartment":{"name":"departmentId","in":"query","description":"Filter using the department id.","required":false,"schema":{"type":"string"}},"FilterByProject":{"name":"projectId","in":"query","description":"project id to filter by","required":false,"schema":{"type":"string"}},"FilterByCluster":{"name":"clusterId","in":"query","description":"Filter using the Universally Unique Identifier (UUID) of the cluster.","required":false,"schema":{"type":"string","format":"uuid"}}},"schemas":{"DistributedPolicyV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyMeta"},"policy":{"$ref":"#/components/schemas/DistributedPolicyDefaultsAndRulesV2"},"effective":{"$ref":"#/components/schemas/DistributedPolicyDefaultsAndRulesV2"},"effectiveUpdatedAt":{"$ref":"#/components/schemas/Timestamp"}},"nullable":true,"type":"object"},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"DistributedPolicyDefaultsAndRulesV2":{"properties":{"defaults":{"$ref":"#/components/schemas/DistributedPolicyDefaultsV2"},"rules":{"$ref":"#/components/schemas/DistributedPolicyRulesV2"},"imposedAssets":{"$ref":"#/components/schemas/DistributedImposedAssets"},"status":{"$ref":"#/components/schemas/PolicyValidationStatus"}},"nullable":true,"type":"object"},"DistributedPolicyDefaultsV2":{"properties":{"worker":{"allOf":[{"$ref":"#/components/schemas/ReplicaDefaultsV2"},{"$ref":"#/components/schemas/DistributedFields"}],"nullable":true,"type":"object"},"master":{"$ref":"#/components/schemas/ReplicaDefaultsV2"}},"nullable":true,"type":"object"},"ReplicaDefaultsV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFields"},{"$ref":"#/components/schemas/NodeRelatedFlatFields"},{"$ref":"#/components/schemas/CommonItemizedDefaults"},{"$ref":"#/components/schemas/AdvancedFlatFields"},{"$ref":"#/components/schemas/ConnectivityDefaults"},{"$ref":"#/components/schemas/Security"},{"$ref":"#/components/schemas/ComputeDefaults"},{"$ref":"#/components/schemas/StorageDefaults"},{"$ref":"#/components/schemas/NonInferenceFlatFields"}],"nullable":true,"type":"object"},"CommonFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridable"},{"$ref":"#/components/schemas/ContainerNonOverridable"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPod"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPG"}],"nullable":true,"type":"object"},"ContainerOverridable":{"description":"Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"command":{"description":"A command to the server as the entry point of the container running the workload.","type":"string","minLength":1,"nullable":true},"args":{"description":"Arguments to the command that the container running the workload executes.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ContainerNonOverridable":{"description":"Container non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"image":{"description":"Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a workload.","type":"string","minLength":1,"nullable":true},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicy"},"workingDir":{"description":"Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.","type":"string","minLength":1,"nullable":true},"createHomeDir":{"description":"When set to `true`, creates a home directory for the container.","type":"boolean","nullable":true},"probes":{"$ref":"#/components/schemas/Probes"}},"nullable":true,"type":"object"},"ImagePullPolicy":{"description":"Image pull policy. Defaults to `Always` if `:latest` tag is specified, otherwise it is `IfNotPresent`.","type":"string","minLength":1,"enum":["Always","Never","IfNotPresent"],"nullable":true},"Probes":{"description":"Probes are used to determine if the container is healthy and ready to accept traffic.","type":"object","properties":{"readiness":{"$ref":"#/components/schemas/Probe"}},"nullable":true},"Probe":{"type":"object","properties":{"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness or readiness probes are initiated.","type":"integer","format":"int32","minimum":0,"nullable":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe.","type":"integer","format":"int32","minimum":1,"nullable":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out.","type":"integer","format":"int32","minimum":1,"nullable":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed.","type":"integer","format":"int32","minimum":1,"nullable":true},"failureThreshold":{"description":"When a probe fails, the number of times to try before giving up.","type":"integer","format":"int32","minimum":1,"nullable":true},"handler":{"$ref":"#/components/schemas/ProbeHandler"}},"nullable":true},"ProbeHandler":{"description":"The action taken to determine the health of the container. (mandatory)","type":"object","properties":{"httpGet":{"description":"An action based on HTTP Get requests.","type":"object","properties":{"path":{"description":"Path to access on the HTTP server, defaults to /.","type":"string","pattern":"^(\\x2F[a-zA-Z0-9\\-_.\\x2F]*)?$","nullable":true},"port":{"description":"Number of the port to access on the container.","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"host":{"description":"Host name to connect to, defaults to the pod IP.","type":"string","format":"hostname","nullable":true},"scheme":{"$ref":"#/components/schemas/ProbeHandlerScheme"}}}},"nullable":true},"ProbeHandlerScheme":{"description":"Scheme to use for connecting to the host, defaults to HTTP.","type":"string","enum":["HTTP","HTTPS"],"nullable":true},"ResourcesFlatFieldsPerPod":{"description":"Resource parameters.","properties":{"nodeType":{"description":"Nodes (machines), or a group of nodes on which the workload will run. To use this feature, your Administrator will need to label nodes. For more information, see [Group Nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/researcher-setup/limit-to-node-group). When using this flag with with Project-based affinity, it refines the list of allowable node groups set in the Project. For more information, see [Projects](https://docshub.run.ai/guides/platform-management/aiinitiatives/organization/projects).","type":"string","minLength":1,"nullable":true},"nodeAffinityRequired":{"$ref":"#/components/schemas/NodeAffinityRequired"},"podAffinity":{"$ref":"#/components/schemas/PodAffinity"}},"nullable":true,"type":"object"},"NodeAffinityRequired":{"type":"object","description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","properties":{"nodeSelectorTerms":{"description":"A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/components/schemas/NodeSelectorTerm"}}},"nullable":true},"NodeSelectorTerm":{"type":"object","description":"A null or empty node selector term matches no objects. The requirements of them are ANDed.","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"$ref":"#/components/schemas/MatchExpression"}}},"nullable":true},"MatchExpression":{"type":"object","description":"A selector that contains values, a key, and an operator that relates the key and values.","properties":{"key":{"description":"The label key that the selector applies to (mandatory).","type":"string"},"operator":{"$ref":"#/components/schemas/MatchExpressionOperator"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.","type":"array","items":{"type":"string"}}},"required":["key","operator"],"nullable":true},"MatchExpressionOperator":{"description":"Represents a key's relationship to a set of values (mandatory).","type":"string","enum":["In","NotIn","Exists","DoesNotExist","Gt","Lt"]},"PodAffinity":{"description":"Pod affinity scheduling rules (e.g. co-locate this workload in the same node, zone, etc. as some other workloads).","type":"object","properties":{"type":{"$ref":"#/components/schemas/PodAffinityType"},"key":{"description":"The label key to use. (mandatory)","type":"string","nullable":true}},"nullable":true},"PodAffinityType":{"description":"The affinity type, required or preferred. (mandatory)","type":"string","enum":["Required","Preferred"],"nullable":true},"ResourcesFlatFieldsPerPG":{"description":"Resource parameters.","properties":{"category":{"$ref":"#/components/schemas/Category"},"priorityClass":{"$ref":"#/components/schemas/PriorityClass"}},"nullable":true,"type":"object"},"Category":{"description":"Specify the workload category assigned to the workload. Categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.","type":"string","nullable":true},"PriorityClass":{"description":"Specifies the priority class for the workload.  Valid values are: very-low, low, medium-low, medium, medium-high, high, very-high.  You can use this parameter to adjust the workload's scheduling behavior.  Each workload type has a default priority.  To view the default priority for each workload type, use the GET /workload-types endpoint.","type":"string","nullable":true},"NodeRelatedFlatFields":{"description":"Node related parameters.","properties":{"nodePools":{"description":"A prioritized list of node pools for the scheduler to run the workload on. The scheduler will always try to use the first node pool before moving to the next one if the first is not available.","type":"array","items":{"type":"string"},"nullable":true}},"nullable":true,"type":"object"},"CommonItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldDefaults"},{"$ref":"#/components/schemas/AdvancedItemizedDefaults"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldDefaults":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/EnvironmentVariablesDefaults"}},"nullable":true,"type":"object"},"EnvironmentVariablesDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/EnvironmentVariables"}},"nullable":true,"type":"object"},"EnvironmentVariables":{"description":"Set of environment variables to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"nullable":true},"EnvironmentVariable":{"description":"Details of an environment variable which is populated into the container.","properties":{"name":{"description":"The name of the environment variable. (mandatory)","type":"string","minLength":1,"nullable":true},"value":{"description":"The value of the environment variable. (mutually exclusive with secret, credential, configMap and podFieldRef)","type":"string","nullable":true},"secret":{"$ref":"#/components/schemas/EnvironmentVariableSecret"},"configMap":{"$ref":"#/components/schemas/EnvironmentVariableConfigMap"},"podFieldRef":{"$ref":"#/components/schemas/EnvironmentVariablePodFieldReference"},"exclude":{"description":"Use 'true' in case the environment variable is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true},"description":{"description":"Description of the environment variable.","type":"string","nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableSecret":{"description":"Details of the secret and key use to populate the environment variable","properties":{"name":{"description":"The name of the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableConfigMap":{"description":"Details of the configMap and key use to populate the environment variable","properties":{"name":{"description":"The name of the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariablePodFieldReference":{"description":"Details of the field-reference and key use to populate the environment variable","properties":{"path":{"description":"The field path resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"AdvancedItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldDefaults"},{"$ref":"#/components/schemas/LabelsFieldDefaults"},{"$ref":"#/components/schemas/ImagePullSecretsFieldDefaults"},{"$ref":"#/components/schemas/TolerationsFieldDefaults"}],"type":"object","nullable":true},"AnnotationsFieldDefaults":{"properties":{"annotations":{"$ref":"#/components/schemas/AnnotationsDefaults"}},"nullable":true,"type":"object"},"AnnotationsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Annotations"}},"nullable":true,"type":"object"},"Annotations":{"description":"Set of annotations to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Annotation"},"nullable":true},"Annotation":{"description":"Annotation details to be populated into the container.","properties":{"name":{"description":"The name of the annotation (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the annotation.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the annotation is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"LabelsFieldDefaults":{"properties":{"labels":{"$ref":"#/components/schemas/LabelsDefaults"}},"nullable":true,"type":"object"},"LabelsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Labels"}},"nullable":true,"type":"object"},"Labels":{"description":"Set of labels to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Label"},"nullable":true},"Label":{"description":"Label details to be populated into the container.","properties":{"name":{"description":"The name of the label (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the label.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ImagePullSecretsFieldDefaults":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsDefaults"}},"nullable":true,"type":"object"},"ImagePullSecretsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/ImagePullSecrets"}},"nullable":true,"type":"object"},"ImagePullSecrets":{"description":"A list of references to Kubernetes secrets in the same namespace used for pulling container images.","type":"array","items":{"$ref":"#/components/schemas/ImagePullSecret"},"nullable":true},"ImagePullSecret":{"description":"A reference to a secret in the same namespace used to pull container images.","properties":{"name":{"type":"string","description":"The name of the Kubernetes secret containing the image pull credentials."},"userCredential":{"type":"boolean","description":"Indicates whether the secret is a user credential. Set to true if the secret was created by the user and is only accessible by them.","nullable":true},"exclude":{"description":"Use 'true' in case the secret is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"TolerationsFieldDefaults":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsDefaults"}},"nullable":true,"type":"object"},"TolerationsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Toleration"},"instances":{"$ref":"#/components/schemas/Tolerations"}},"nullable":true,"type":"object"},"Toleration":{"description":"Toleration details.","properties":{"name":{"description":"The name of the toleration.","type":"string","minLength":1,"nullable":true},"operator":{"$ref":"#/components/schemas/TolerationOperator"},"key":{"description":"The taint key that the toleration applies to. (mandatory)","type":"string","nullable":true},"value":{"description":"The taint value the toleration matches to. Mandatory if operator is Exists, forbidden otherwise.","type":"string","nullable":true},"effect":{"$ref":"#/components/schemas/TolerationEffect"},"seconds":{"description":"The period of time the toleration tolerates the taint. Valid only if effect is NoExecute. taint.","type":"integer","minimum":1,"nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TolerationOperator":{"description":"A key's relationship to the value. Equal uses key and value. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. (mandatory)","type":"string","enum":["Equal","Exists"],"nullable":true},"TolerationEffect":{"description":"The taint effect to match. (mandatory)","type":"string","enum":["NoSchedule","NoExecute","PreferNoSchedule","Any"],"nullable":true},"Tolerations":{"description":"Set of tolerations to apply to the workload.","type":"array","items":{"$ref":"#/components/schemas/Toleration"},"nullable":true},"AdvancedFlatFields":{"properties":{"terminateAfterPreemption":{"description":"Indicates if the job should be terminated by the system after it has been preempted.","type":"boolean","nullable":true},"autoDeletionTimeAfterCompletionSeconds":{"description":"Specifies the duration after which a finished workload (completed or failed) will be automatically deleted. The default is 30 days.","format":"int64","type":"integer","nullable":true},"terminationGracePeriodSeconds":{"description":"Duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down).","format":"int64","type":"integer","minimum":0,"nullable":true},"backoffLimit":{"description":"Specifies the number of retries before marking a workload as failed (not applicable to Inference workloads). The default value is 6.","format":"int64","type":"integer","nullable":true},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicy"}},"nullable":true,"type":"object"},"RestartPolicy":{"description":"Specify the restart policy of the workload pods. Default is empty, which is determine by the framework default","type":"string","minLength":1,"enum":["Always","Never","OnFailure"],"nullable":true},"ConnectivityDefaults":{"properties":{"ports":{"$ref":"#/components/schemas/PortsDefaults"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsDefaults"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsDefaults"}},"nullable":true,"type":"object"},"PortsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Port"},"instances":{"$ref":"#/components/schemas/Ports"}},"nullable":true,"type":"object"},"Port":{"description":"A port for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"serviceType":{"$ref":"#/components/schemas/PortServiceType"},"external":{"description":"The external port which allows a connection to the container port. If not specified, the port will be auto-generated by the system..","type":"integer","format":"int32","nullable":true},"toolType":{"description":"The tool type that runs on this port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this port.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PortServiceType":{"description":"The service type of the port (mandatory).","type":"string","enum":["LoadBalancer","NodePort","ClusterIP"],"nullable":true},"Ports":{"description":"Set of container ports that the workload exposes.","type":"array","items":{"$ref":"#/components/schemas/Port"},"nullable":true},"ExposedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrl"},"instances":{"$ref":"#/components/schemas/ExposedUrls"}},"nullable":true,"type":"object"},"ExposedUrl":{"description":"A URL for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","nullable":true},"url":{"description":"The URL for connecting to the container port. If not specified, the URL will be auto-generated by the system..","type":"string","nullable":true},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"toolType":{"description":"The tool type that runs on this container port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this url.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the instance is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExposedUrls":{"description":"Set of container ports that the workload exposes via URLs.","type":"array","items":{"$ref":"#/components/schemas/ExposedUrl"},"nullable":true},"RelatedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrl"},"instances":{"$ref":"#/components/schemas/RelatedUrls"}},"nullable":true,"type":"object"},"RelatedUrl":{"description":"A URL that is related to the workload. For example, a URL to an external server providing statistics or logging about the workload.","properties":{"url":{"description":"The URL for connecting an external service related to the workload. (mandatory)","type":"string","nullable":true},"type":{"description":"The type of service that the url provides. For example, wandb (Weights & Biases). (mandatory)","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"RelatedUrls":{"description":"Set of URLs that are related to the workload.","type":"array","items":{"$ref":"#/components/schemas/RelatedUrl"},"nullable":true},"Security":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFields"}},"nullable":true,"type":"object"},"SecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFields"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFields"}],"nullable":true,"type":"object"},"CommonSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridable"},{"$ref":"#/components/schemas/CommonSecurityOverridable"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridable":{"description":"Security non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSource"},"capabilities":{"description":"Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.","type":"array","items":{"$ref":"#/components/schemas/Capability"},"nullable":true},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileType"},"runAsNonRoot":{"description":"Force the container to run as a non-root user.","type":"boolean","nullable":true},"readOnlyRootFilesystem":{"description":"If true, mounts the container's root filesystem as read-only.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"UidGidSource":{"description":"Indicate the way to determine the user and group ids of the container. The options are a. `fromTheImage` - user and group ids are determined by the docker image that the container runs. this is the default option. b. `custom` - user and group ids can be specified in the environment asset and/or the workload creation request. c. `idpToken` - user and group ids are determined according to the identity provider (idp) access token. This option is intended for internal use of the environment UI form. For more information, see [User Identity](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/runai-setup/config/non-root-containers/).","type":"string","enum":["fromTheImage","fromIdpToken","custom"],"nullable":true},"Capability":{"type":"string","enum":["AUDIT_CONTROL","AUDIT_READ","AUDIT_WRITE","BLOCK_SUSPEND","CHOWN","DAC_OVERRIDE","DAC_READ_SEARCH","FOWNER","FSETID","IPC_LOCK","IPC_OWNER","KILL","LEASE","LINUX_IMMUTABLE","MAC_ADMIN","MAC_OVERRIDE","MKNOD","NET_ADMIN","NET_BIND_SERVICE","NET_BROADCAST","NET_RAW","SETGID","SETFCAP","SETPCAP","SETUID","SYS_ADMIN","SYS_BOOT","SYS_CHROOT","SYS_MODULE","SYS_NICE","SYS_PACCT","SYS_PTRACE","SYS_RAWIO","SYS_RESOURCE","SYS_TIME","SYS_TTY_CONFIG","SYSLOG","WAKE_ALARM"]},"SeccompProfileType":{"description":"Indicates which kind of seccomp profile will be applied to the container. The options are a. `RuntimeDefault` - the container runtime default profile should be used. b. `Unconfined` - no profile should be applied. c. `Localhost` is not yet supported by Run:ai.","type":"string","enum":["RuntimeDefault","Unconfined","Localhost"],"nullable":true},"CommonSecurityOverridable":{"description":"Security overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"runAsUid":{"description":"The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsUid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"runAsGid":{"description":"The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsGid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"supplementalGroups":{"description":"Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled. Using an empty string implies reverting the supplementary groups of the image.","type":"string","nullable":true}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridable"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridable":{"description":"Security related fields. When used in assets context, those are environment asset fields that cannot be override in the submit workload request.","properties":{"allowPrivilegeEscalation":{"description":"Allow the container running the workload and all launched processes to gain additional privileges after the workload starts. For more information consult the User Identity in Container guide at https://docs.run.ai/admin/runai-setup/config/non-root-containers/","type":"boolean","nullable":true},"hostIpc":{"description":"Whether to enable host IPC. Defaults to false.","type":"boolean","nullable":true},"hostNetwork":{"description":"Whether to enable host networking. Default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ComputeDefaults":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsDefaults"}},"nullable":true,"type":"object"},"ComputeFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFields"},{"$ref":"#/components/schemas/ComputeItemizedFieldsDefaults"}],"nullable":true,"type":"object"},"ComputeFlatFields":{"properties":{"gpuDevicesRequest":{"description":"Requested number of GPU devices. Currently if more than one device is requested, it is not possible to provide values for gpuMemory, gpuPortion or migProfile [deprecated].","type":"integer","format":"int32","nullable":true,"minimum":0},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestType"},"gpuPortionRequest":{"description":"Required if and only if gpuRequestType is portion. States the portion of the GPU to allocate for the created workload, per GPU device, between 0 and 1. The default is no allocated GPUs.","type":"number","format":"double","nullable":true,"minimum":0},"gpuPortionLimit":{"description":"Limitations on the portion consumed by the workload, per GPU device. The system guarantees The gpuPotionLimit must be no less than the gpuPortionRequest.","type":"number","format":"double","nullable":true,"minimum":0},"gpuMemoryRequest":{"description":"Required if and only if gpuRequestType is memory. States the GPU memory to allocate for the created workload, per GPU device. Note that the workload will not be scheduled unless the system can guarantee this amount of GPU memory to the workload.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"gpuMemoryLimit":{"description":"Limitation on the memory consumed by the workload, per GPU device. The system guarantees The gpuMemoryLimit must be no less than gpuMemoryRequest.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"migProfile":{"$ref":"#/components/schemas/MigProfile","depracted":true},"cpuCoreRequest":{"description":"CPU units to allocate for the created workload (0.5, 1, .etc). The workload will receive at least this amount of CPU. Note that the workload will not be scheduled unless the system can guarantee this amount of CPUs to the workload.","format":"double","type":"number","nullable":true,"minimum":0},"cpuCoreLimit":{"description":"Limitations on the number of CPUs consumed by the workload (0.5, 1, .etc). The system guarantees that this workload will not be able to consume more than this amount of CPUs.","format":"double","type":"number","nullable":true,"minimum":0},"cpuMemoryRequest":{"description":"The amount of CPU memory to allocate for this workload (1G, 20M, .etc). The workload will receive at least this amount of memory. Note that the workload will not be scheduled unless the system can guarantee this amount of memory to the workload","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"cpuMemoryLimit":{"description":"Limitations on the CPU memory to allocate for this workload (1G, 20M, .etc). The system guarantees that this workload will not be able to consume more than this amount of memory. The workload will receive an error when trying to allocate more memory than this limit.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"largeShmRequest":{"description":"A large /dev/shm device to mount into a container running the created workload. An shm is a shared file system mounted on RAM.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"GpuRequestType":{"description":"Sets the unit type for GPU resources requests. Stated in terms of portion, memory or  mig profile [deprecated]. Sets the unit type for other GPU request fields. If `gpuDevicesRequest > 1`, only `portion` is supported. If `gpuDeviceRequest = 1`, the request type can be stated as `portion`, `memory` or `migProfile` [deprecated].","type":"string","minLength":1,"enum":["portion","memory","migProfile"],"nullable":true},"MigProfile":{"description":"Required only if `gpuRequestType` is `migProfile`. This states the memory profile to be used for the workload running NVIDIA Multi-Instance GPU (MIG) technology.","type":"string","deprecated":true,"minLength":1,"enum":["1g.5gb","1g.10gb","2g.10gb","2g.20gb","3g.20gb","3g.40gb","4g.20gb","4g.40gb","7g.40gb","7g.80gb"],"nullable":true},"ComputeItemizedFieldsDefaults":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesDefaults"}},"nullable":true,"type":"object"},"ExtendedResourcesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResource"},"instances":{"$ref":"#/components/schemas/ExtendedResources"}},"nullable":true,"type":"object"},"ExtendedResource":{"description":"Quantity of an extended resource.","properties":{"resource":{"description":"The name of the extended resource (mandatory)","type":"string","minLength":1,"nullable":true},"quantity":{"description":"The requested quantity for the resource.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the extended resource is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExtendedResources":{"description":"Extended resources and their quantity.","type":"array","items":{"$ref":"#/components/schemas/ExtendedResource"},"nullable":true},"StorageDefaults":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsDefaults"}},"nullable":true,"type":"object"},"StorageFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsDefaults"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsDefaults"}],"nullable":true,"type":"object"},"CommonStorageFieldsDefaults":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesDefaults"},"pvc":{"$ref":"#/components/schemas/PvcsDefaults"},"hostPath":{"$ref":"#/components/schemas/HostPathsDefaults"},"nfs":{"$ref":"#/components/schemas/NfssDefaults"},"git":{"$ref":"#/components/schemas/GitsDefaults"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsDefaults"},"secretVolume":{"$ref":"#/components/schemas/SecretsDefaults"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsDefaults"}},"nullable":true,"type":"object"},"DataVolumesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeInstance"},"instances":{"$ref":"#/components/schemas/DataVolumeItems"}},"nullable":true,"type":"object"},"DataVolumeInstance":{"allOf":[{"$ref":"#/components/schemas/DataVolume"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"DataVolume":{"properties":{"id":{"description":"The unique identifier of the data volume. (mandatory)","type":"string","format":"uuid","nullable":true},"mountPath":{"description":"The path where the data volume will be mounted. (mandatory)","type":"string","nullable":true}},"nullable":true,"type":"object"},"ExcludeField":{"properties":{"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"type":"object","nullable":true},"DataVolumeItems":{"description":"Set of data volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/DataVolumeInstance"},"nullable":true},"PvcsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcInstance"},"instances":{"$ref":"#/components/schemas/PvcItems"}},"nullable":true,"type":"object"},"PvcInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Pvc"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"StorageInstanceName":{"properties":{"name":{"description":"unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"Pvc":{"allOf":[{"$ref":"#/components/schemas/PvcFieldsUpdatable"},{"$ref":"#/components/schemas/PvcFieldsNonUpdatable"}]},"PvcFieldsUpdatable":{"properties":{"path":{"description":"Local path within the workload to which the PVC bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"PvcFieldsNonUpdatable":{"properties":{"existingPvc":{"description":"Verify existing PVC. PVC is assumed to exist when set to `true`. If set to `false`, the PVC will be created, if it does not exist.","type":"boolean","default":false,"nullable":true},"claimName":{"description":"Name for the PVC. Allow referencing it across workloads. If not provided, a name based on the workload name and scope will be auto-generated.","type":"string","minLength":1,"maxLength":63,"nullable":true},"readOnly":{"description":"Permit only read access to PVC.","type":"boolean","default":false,"nullable":true},"ephemeral":{"description":"Use `true` to set PVC to ephemeral. If set to `true`, the PVC will be deleted when the workload is stopped. Not supported for inference workloads.","type":"boolean","default":false,"nullable":true},"claimInfo":{"$ref":"#/components/schemas/ClaimInfo"},"dataSharing":{"description":"use `true` to share the PVC data to all projects under the selected scope.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"ClaimInfo":{"description":"Claim information for the newly created PVC. The information should not be provided when attempting to use existing PVC.","properties":{"size":{"$ref":"#/components/schemas/PvcClaimSize"},"storageClass":{"description":"Storage class name to associate with the PVC. This parameter may be omitted if there is a single storage class in the system, or you are using the default storage class. For more information, see [Storage class](https://kubernetes.io/docs/concepts/storage/storage-classes).","type":"string","minLength":1,"nullable":true},"accessModes":{"$ref":"#/components/schemas/PvcAccessModes"},"volumeMode":{"$ref":"#/components/schemas/PvcVolumeMode"},"addedAttrValues":{"$ref":"#/components/schemas/PvcAddedAttrValues"}},"nullable":true,"type":"object"},"PvcClaimSize":{"description":"Requested size for the PVC. Mandatory when existingPvc is false. Recommended sizes: TB/GB/MB/TIB/GIB/MIB","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"PvcAccessModes":{"description":"Requested access mode(s) for the newly created PVC.","properties":{"readWriteOnce":{"description":"Requesting claim that can be mounted in read/write mode to exactly one host. This is the default access mode.","type":"boolean","default":true,"nullable":true},"readOnlyMany":{"description":"Requesting claim that can be mounted in read-only mode to many hosts.","type":"boolean","default":false,"nullable":true},"readWriteMany":{"description":"Requesting claim that can be mounted in read/write mode to many hosts.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PvcVolumeMode":{"description":"The volume mode required by the claim. Choose Filesystem (default) or Block.","type":"string","enum":["Filesystem","Block"],"nullable":true},"PvcAddedAttrValues":{"description":"an optional array of key-values pairs that are written as annotations on the created PVC. the allowed attributes are determined according to the storage class configuration (see k8s-objects-tracker for further info).","type":"array","items":{"$ref":"#/components/schemas/PvcAddedAttrValue"}},"PvcAddedAttrValue":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":63,"pattern":"^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$"},"value":{"type":"string"}}},"PvcItems":{"description":"Set of pvc persistent volume claims to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/PvcInstance"},"nullable":true},"HostPathsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathInstance"},"instances":{"$ref":"#/components/schemas/HostPathItems"}},"nullable":true,"type":"object"},"HostPathInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/HostPath"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"HostPath":{"properties":{"path":{"description":"Local path within the controller to which the host volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","default":true,"nullable":true},"mountPath":{"description":"The path that the host volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagation"}},"nullable":true,"type":"object"},"HostPathMountPropagation":{"description":"Share this volumes mount with other containers. If set to HostToContainer, this volume mount will receive all subsequent mounts that are mounted to this volume or any of its subdirectories. In case of multiple hostPath entries, this field should have the same value for all of them.","type":"string","enum":["None","HostToContainer"],"nullable":true},"HostPathItems":{"description":"Set of host paths to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/HostPathInstance"},"nullable":true},"NfssDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsInstance"},"instances":{"$ref":"#/components/schemas/NfsItems"}},"nullable":true,"type":"object"},"NfsInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Nfs"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Nfs":{"properties":{"path":{"description":"Path that is exported by the NFS server (mandatory). For more information, see [NFS](https://kubernetes.io/docs/concepts/storage/volumes#nfs).","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the NFS export to be mounted with read-only permissions.","type":"boolean","default":true,"nullable":true},"server":{"description":"The hostname or IP address of the NFS server. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"The path that the NFS volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"NfsItems":{"description":"Set of nfs volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/NfsInstance"},"nullable":true},"GitsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/GitInstance"},"instances":{"$ref":"#/components/schemas/GitItems"}},"nullable":true,"type":"object"},"GitInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/GitCommon"},{"$ref":"#/components/schemas/GitPassword"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"GitCommon":{"properties":{"repository":{"description":"URL to a remote Git repository. The content of this repository will be mapped to the container running the workload. (mandatory)","type":"string","minLength":1,"nullable":true},"branch":{"description":"Specific branch to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"revision":{"description":"Specific revision to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the Git repository will be mapped (mandatory).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitPassword":{"properties":{"passwordSecret":{"description":"Secret containing the credentials of the repository (needed for non public repository which requires authentication).","type":"string","minLength":1,"nullable":true},"secretKeyOfUser":{"description":"The key to use for loading the user name from the secret. The default is `User`.","type":"string","minLength":1,"nullable":true},"secretKeyOfPassword":{"description":"The key to use for loading the password from the secret. The default is `Password`.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitItems":{"description":"Set of git repositories to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/GitInstance"},"nullable":true},"ConfigMapsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapInstance"},"instances":{"$ref":"#/components/schemas/ConfigMapField"}},"nullable":true,"type":"object"},"ConfigMapInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/ConfigMap"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"ConfigMap":{"properties":{"configMap":{"description":"The name of the ConfigMap resource. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"Local path within the workload to which the ConfigMap will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ConfigMapField":{"description":"Set of config map volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/ConfigMapInstance"},"nullable":true},"SecretsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretInstance2"},"instances":{"$ref":"#/components/schemas/SecretItems1"}},"nullable":true,"type":"object"},"SecretInstance2":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Secret5"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Secret5":{"allOf":[{"$ref":"#/components/schemas/SecretFieldsUpdatable"},{"$ref":"#/components/schemas/SecretFieldsNonUpdatable"}]},"SecretFieldsUpdatable":{"properties":{"mountPath":{"description":"Local path within the workload to which the Secret will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretFieldsNonUpdatable":{"properties":{"secret":{"description":"The name of the Secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretItems1":{"description":"Set of secret volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/SecretInstance2"},"nullable":true},"EmptyDirsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirInstance"},"instances":{"$ref":"#/components/schemas/EmptyDirItems"}},"nullable":true,"type":"object"},"EmptyDirInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/EmptyDir"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"EmptyDir":{"properties":{"path":{"description":"Local path within the workload to which the EmptyDir volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"medium":{"description":"The type of storage medium for the volume. Use \"Memory\" for memory-backed storage, or leave empty for disk-backed storage.","type":"string","minLength":1,"nullable":true},"sizeLimit":{"description":"The total amount of local storage or memory required for the emptyDir volume. Specify using Kubernetes quantity format (e.g., 1G, 500Mi).","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true}},"nullable":true,"type":"object"},"EmptyDirItems":{"description":"A list of emptyDir volumes to mount in the workload.","type":"array","items":{"$ref":"#/components/schemas/EmptyDirInstance"},"nullable":true},"NonInferenceStorageFieldsDefaults":{"properties":{"s3":{"$ref":"#/components/schemas/S3sDefaults"}},"nullable":true,"type":"object"},"S3sDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Instance"},"instances":{"$ref":"#/components/schemas/S3Items"}},"nullable":true,"type":"object"},"S3Instance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/S3Common"},{"$ref":"#/components/schemas/S3AccessKey"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"S3Common":{"properties":{"bucket":{"description":"The name of the bucket. (mandatory)","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the S3 bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"url":{"description":"The url of the S3 service provider. The default is the URL of the Amazon AWS S3 service.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3AccessKey":{"properties":{"accessKeySecret":{"description":"Name of the secret containing credentials of the S3 bucket. Used for private S3 buckets.","type":"string","minLength":1,"nullable":true},"secretKeyOfAccessKeyId":{"description":"The key to use for loading the access key id from the secret. The default is `AccessKeyId`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true},"secretKeyOfSecretKey":{"description":"The key to use for loading the secret key from the secret. The default is `SecretKey`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3Items":{"description":"Set of s3 buckets to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/S3Instance"},"nullable":true},"NonInferenceFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridable"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridable":{"description":"Container non Inference overrideable fields. It adds properties which are not allowed for Inference containers","properties":{"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.","type":"boolean","nullable":true},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"DistributedFields":{"properties":{"numWorkers":{"description":"the number of workers that will be allocated for running the workload.","type":"integer","minimum":1,"nullable":true},"distributedFramework":{"$ref":"#/components/schemas/DistributedFramework"},"slotsPerWorker":{"description":"Specifies the number of slots per worker used in hostfile. Defaults to 1. (applicable only for MPI)","type":"integer","minimum":1,"nullable":true,"default":1},"sshAuthMountPath":{"description":"Specifies the directory where SSH keys are mounted. (applicable only for MPI)","type":"string","nullable":true,"default":"/root/.ssh"},"mpiLauncherCreationPolicy":{"$ref":"#/components/schemas/DistributedMpiLauncherCreationPolicy"},"minReplicas":{"description":"the lower limit for the number of worker pods to which the training job can scale down. (applicable only for PyTorch)","type":"integer","nullable":true},"maxReplicas":{"description":"the upper limit for the number of worker pods that can be set by the autoscaler. Cannot be smaller than MinReplicas. (applicable only for PyTorch)","type":"integer","nullable":true},"cleanPodPolicy":{"$ref":"#/components/schemas/DistributedCleanPodPolicy"}},"nullable":true,"type":"object"},"DistributedFramework":{"description":"The distributed training framework used in the workload.","type":"string","enum":["MPI","PyTorch","TF","XGBoost","JAX"],"nullable":true},"DistributedMpiLauncherCreationPolicy":{"description":"Define whether the MPI Launcher is created in parallel with the workers, or if its creation is postponed until all workers are in  Ready state. This prevents failures when the launcher attempts to connect to workers that are not yet ready.","type":"string","enum":["AtStartup","WaitForWorkersReady"],"nullable":true},"DistributedCleanPodPolicy":{"description":"The policy describes how to deal with pods when the job is finished.","type":"string","enum":["None","All","Running"],"nullable":true},"DistributedPolicyRulesV2":{"properties":{"worker":{"allOf":[{"$ref":"#/components/schemas/ReplicaRulesV2"},{"$ref":"#/components/schemas/DistributedFieldsRules"}],"nullable":true,"type":"object"},"master":{"$ref":"#/components/schemas/ReplicaRulesV2"}},"nullable":true,"type":"object"},"ReplicaRulesV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFieldsRules"},{"$ref":"#/components/schemas/NodeRelatedFlatFieldsRules"},{"$ref":"#/components/schemas/CommonItemizedFieldsRules"},{"$ref":"#/components/schemas/AdvancedFlatFieldsRules"},{"$ref":"#/components/schemas/ConnectivityRules"},{"$ref":"#/components/schemas/SecurityRules"},{"$ref":"#/components/schemas/ComputeRules"},{"$ref":"#/components/schemas/StorageRules"},{"$ref":"#/components/schemas/NonInferenceFlatFieldsRules"}],"nullable":true,"type":"object"},"CommonFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridableRules"},{"$ref":"#/components/schemas/ContainerNonOverridableRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPodRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPGRules"}],"nullable":true,"type":"object"},"ContainerOverridableRules":{"description":"Container related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"command":{"$ref":"#/components/schemas/StringRules"},"args":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StringRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/StringRulesOptions"}],"nullable":true,"type":"object"},"StringRulesCommon":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true}}},"SourceOfRule":{"description":"This field is used by the system along with effective rules, in order to specify the org unit from which this effective rule has been derived. It should be left empty when sending apply policy requests.","required":["scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"isFallback":{"description":"source of this rule is the fallback policy","type":"boolean"}},"nullable":true,"type":"object"},"StringRulesOptions":{"properties":{"options":{"description":"Set of options that the value of the field must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"},"nullable":true}}},"StringOption":{"description":"One of the values that the field can be assigned to, when options police is applied on the field.","required":["value"],"properties":{"value":{"description":"The value that the field should hold","type":"string"},"displayed":{"description":"Textual description of the value. to be used by user interface applications.","type":"string","nullable":true}}},"ContainerNonOverridableRules":{"properties":{"image":{"$ref":"#/components/schemas/StringRules"},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicyRules"},"workingDir":{"$ref":"#/components/schemas/StringRules"},"createHomeDir":{"$ref":"#/components/schemas/BooleanRules"},"probes":{"$ref":"#/components/schemas/ProbesRules"}},"nullable":true,"type":"object"},"ImagePullPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ImagePullPolicyOptions"}],"nullable":true,"type":"object"},"ImagePullPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ImagePullPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"BooleanRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ProbesRules":{"properties":{"readiness":{"$ref":"#/components/schemas/ProbeRules"}},"nullable":true,"type":"object"},"ProbeRules":{"properties":{"initialDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"periodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"timeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"successThreshold":{"$ref":"#/components/schemas/IntegerRules"},"failureThreshold":{"$ref":"#/components/schemas/IntegerRules"},"handler":{"$ref":"#/components/schemas/ProbeHandlerRules"}},"nullable":true,"type":"object"},"IntegerRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"DefaultFromRule":{"properties":{"field":{"description":"The default of this field is taken from another field, with optional factor. The specified field must belong to the same workload section (compute, security, etc). For itemized field, the value of the field will be taken from the same instance.","type":"string","nullable":true},"factor":{"description":"Multiple the value of the fromField by this factor to get the value for this field For example, if factor is 2 and defaultFrom field has value of 8, the calculated default will be determined to be 16.","type":"number","format":"double","nullable":true,"default":1}},"nullable":true,"type":"object"},"ProbeHandlerRules":{"properties":{"httpGet":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"port":{"$ref":"#/components/schemas/IntegerRules"},"host":{"$ref":"#/components/schemas/StringRules"},"scheme":{"$ref":"#/components/schemas/StringRules"}}}},"nullable":true,"type":"object"},"ResourcesFlatFieldsPerPodRules":{"description":"Resource related parameters.","properties":{"nodeType":{"$ref":"#/components/schemas/StringRules"},"nodeAffinityRequired":{"$ref":"#/components/schemas/ArbitraryRules"},"podAffinity":{"$ref":"#/components/schemas/PodAffinityRules"}},"nullable":true,"type":"object"},"ArbitraryRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this arbitrary object is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"PodAffinityRules":{"properties":{"type":{"$ref":"#/components/schemas/PodAffinityTypeRules"},"key":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PodAffinityTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PodAffinityTypeOptions"}],"nullable":true,"type":"object"},"PodAffinityTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PodAffinityType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"type":"object"},"ResourcesFlatFieldsPerPGRules":{"description":"Resource related parameters.","properties":{"category":{"$ref":"#/components/schemas/StringRules"},"priorityClass":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NodeRelatedFlatFieldsRules":{"description":"Node pools related parameters.","properties":{"nodePools":{"$ref":"#/components/schemas/ArrayRules"}},"nullable":true,"type":"object"},"ArrayRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this array is mandatory. Mandatory array must include at least one item. default to false.","type":"boolean","nullable":true},"options":{"description":"Set of options that the value of each item of the array must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"}},"canEdit":{"description":"Whether the value of the array, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"CommonItemizedFieldsRules":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldRules"},{"$ref":"#/components/schemas/AdvancedItemizedRules"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldRules":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"InstancesRules":{"properties":{"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ItemRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canAdd":{"description":"Whether it is permitted to add items. Default to true.","type":"boolean","nullable":true},"locked":{"description":"Set of keys for items that are \"locked\", i.e. cannot be removed or deleted.","type":"array","items":{"type":"string"}}},"nullable":true,"type":"object"},"AdvancedItemizedRules":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldRules"},{"$ref":"#/components/schemas/LabelsFieldRules"},{"$ref":"#/components/schemas/ImagePullSecretsFieldRules"},{"$ref":"#/components/schemas/TolerationsFieldRules"}],"type":"object","nullable":true},"AnnotationsFieldRules":{"properties":{"annotations":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"LabelsFieldRules":{"properties":{"labels":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"ImagePullSecretsFieldRules":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ImagePullSecretsRulesAttributes"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRulesAttributes":{"description":"Rules for the attributes of imagePullSecrets","properties":{"name":{"$ref":"#/components/schemas/StringRules"},"userCredentials":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationsFieldRules":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsRules"}},"nullable":true,"type":"object"},"TolerationsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/TolerationRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"TolerationRules":{"description":"Toleration details.","properties":{"operator":{"$ref":"#/components/schemas/TolerationOperatorRules"},"key":{"$ref":"#/components/schemas/StringRules"},"value":{"$ref":"#/components/schemas/StringRules"},"effect":{"$ref":"#/components/schemas/TolerationEffectRules"},"seconds":{"$ref":"#/components/schemas/IntegerRules"},"exclude":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationOperatorRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationOperatorOptions"}],"nullable":true,"type":"object"},"TolerationOperatorOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationOperator"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"TolerationEffectRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationEffectOptions"}],"nullable":true,"type":"object"},"TolerationEffectOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationEffect"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"AdvancedFlatFieldsRules":{"properties":{"terminateAfterPreemption":{"$ref":"#/components/schemas/BooleanRules"},"autoDeletionTimeAfterCompletionSeconds":{"$ref":"#/components/schemas/IntegerRules"},"terminationGracePeriodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"backoffLimit":{"$ref":"#/components/schemas/IntegerRules"},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicyRule"}},"nullable":true,"type":"object"},"RestartPolicyRule":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/RestartPolicyOptions"}],"nullable":true,"type":"object"},"RestartPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for restartPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/RestartPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ConnectivityRules":{"properties":{"ports":{"$ref":"#/components/schemas/PortsRules"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsRules"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsRules"}},"nullable":true,"type":"object"},"PortsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PortRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PortRules":{"description":"Rules for port attributes","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"serviceType":{"$ref":"#/components/schemas/PortServiceTypeRules"},"customExternalPort":{"$ref":"#/components/schemas/BooleanRules"},"external":{"$ref":"#/components/schemas/IntegerRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PortServiceTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PortServiceTypeOptions"}],"nullable":true,"type":"object"},"PortServiceTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PortServiceType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ExposedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExposedUrlRules":{"description":"Rules for the attributed of exposedUrls","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"customUrl":{"$ref":"#/components/schemas/BooleanRules"},"url":{"$ref":"#/components/schemas/StringRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"RelatedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"RelatedUrlRules":{"description":"Rules for the attributes of relatedUrls","properties":{"url":{"$ref":"#/components/schemas/StringRules"},"type":{"$ref":"#/components/schemas/StringRules"},"name":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecurityRules":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFieldsRules"}},"nullable":true,"type":"object"},"SecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFieldsRules"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFieldsRules"}],"nullable":true,"type":"object"},"CommonSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridableRules"},{"$ref":"#/components/schemas/CommonSecurityOverridableRules"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridableRules":{"properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSourceRules"},"capabilities":{"$ref":"#/components/schemas/ArrayRules"},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileTypeRules"},"runAsNonRoot":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyRootFilesystem":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"UidGidSourceRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/UidGidSourceOptions"}],"nullable":true,"type":"object"},"UidGidSourceOptions":{"properties":{"options":{"description":"Limit the permitted values for uidGidSource to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/UidGidSource"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"SeccompProfileTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/SeccompProfileTypeOptions"}],"nullable":true,"type":"object"},"SeccompProfileTypeOptions":{"properties":{"options":{"description":"Limit the permitted values for secompProfileType to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/SeccompProfileType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"CommonSecurityOverridableRules":{"description":"Security related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"runAsUid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"runAsGid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"supplementalGroups":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"IntegerRulesOptional":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridableRules"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridableRules":{"properties":{"allowPrivilegeEscalation":{"$ref":"#/components/schemas/BooleanRules"},"hostIpc":{"$ref":"#/components/schemas/BooleanRules"},"hostNetwork":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ComputeRules":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsRules"}},"nullable":true,"type":"object"},"ComputeFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFieldsRules"},{"$ref":"#/components/schemas/ComputeItemizedFieldsRules"}],"nullable":true,"type":"object"},"ComputeFlatFieldsRules":{"properties":{"cpuCoreRequest":{"$ref":"#/components/schemas/NumberRules"},"cpuCoreLimit":{"$ref":"#/components/schemas/NumberRules"},"cpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"cpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"},"largeShmRequest":{"$ref":"#/components/schemas/BooleanRules"},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestRules"},"migProfile":{"$ref":"#/components/schemas/MigProfileRules","deprecated":true},"gpuDevicesRequest":{"$ref":"#/components/schemas/IntegerRules"},"gpuPortionRequest":{"$ref":"#/components/schemas/NumberRules"},"gpuPortionLimit":{"$ref":"#/components/schemas/NumberRules"},"gpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"gpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"}},"nullable":true,"type":"object"},"NumberRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"number","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"number","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=3, step=0.25 implies that the values the field can hold are 2, 2.25, 2.5 and 3.","type":"number","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"QuantityRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"max":{"description":"The maximum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"GpuRequestRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/GpuRequestOptions"}],"nullable":true,"type":"object"},"GpuRequestOptions":{"properties":{"options":{"description":"Limit the permitted values for gpuRequest to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/GpuRequestType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"MigProfileRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/MigProfileOptions"}],"nullable":true,"type":"object"},"MigProfileOptions":{"properties":{"options":{"description":"Limit the permitted values for migProfile to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/MigProfile"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object","deprecated":true},"ComputeItemizedFieldsRules":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesRules"}},"nullable":true,"type":"object"},"ExtendedResourcesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResourceRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExtendedResourceRules":{"description":"Rules for the attributes of extendedResources","properties":{"quantity":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StorageRules":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsRules"}},"nullable":true,"type":"object"},"StorageFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsRules"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsRules"}],"nullable":true,"type":"object"},"CommonStorageFieldsRules":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesRules"},"pvc":{"$ref":"#/components/schemas/PvcsRules"},"hostPath":{"$ref":"#/components/schemas/HostPathsRules"},"nfs":{"$ref":"#/components/schemas/NfssRules"},"git":{"$ref":"#/components/schemas/GitsRules"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsRules"},"secretVolume":{"$ref":"#/components/schemas/SecretsRules"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsRules"}},"nullable":true,"type":"object"},"DataVolumesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"DataVolumeRules":{"properties":{"id":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PvcsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PvcRules":{"properties":{"claimName":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"claimInfo":{"$ref":"#/components/schemas/ClaimInfoRules"}},"nullable":true,"type":"object"},"ClaimInfoRules":{"properties":{"size":{"$ref":"#/components/schemas/StringRules"},"storageClass":{"$ref":"#/components/schemas/StringRules"},"accessModes":{"$ref":"#/components/schemas/PvcAccessModesRules"}},"nullable":true,"type":"object"},"PvcAccessModesRules":{"description":"Rules for access mode(s) for a newly created PVC.","properties":{"readWriteOnce":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyMany":{"$ref":"#/components/schemas/BooleanRules"},"readWriteMany":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"HostPathsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"HostPathRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagationRules"}},"nullable":true,"type":"object"},"HostPathMountPropagationRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/HostPathMountPropagationOptions"}],"nullable":true,"type":"object"},"HostPathMountPropagationOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/HostPathMountPropagation"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}}},"NfssRules":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"NfsRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"server":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"GitsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/GitRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"GitRules":{"properties":{"repository":{"$ref":"#/components/schemas/StringRules"},"branch":{"$ref":"#/components/schemas/StringRules"},"revision":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ConfigMapsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ConfigMapRules":{"properties":{"configMap":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"subPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"SecretRules":{"properties":{"secret":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"EmptyDirsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"EmptyDirRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"medium":{"$ref":"#/components/schemas/StringRules"},"sizeLimit":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceStorageFieldsRules":{"properties":{"s3":{"$ref":"#/components/schemas/S3sRules"}},"nullable":true,"type":"object"},"S3sRules":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Rules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"S3Rules":{"properties":{"bucket":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"url":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridableRules"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridableRules":{"properties":{"tty":{"$ref":"#/components/schemas/BooleanRules"},"stdin":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"DistributedFieldsRules":{"properties":{"numWorkers":{"$ref":"#/components/schemas/IntegerRules"},"distributedFramework":{"$ref":"#/components/schemas/DistributedFrameworkRules"},"slotsPerWorker":{"$ref":"#/components/schemas/IntegerRules"},"sshAuthMountPath":{"$ref":"#/components/schemas/StringRules"},"mpiLauncherCreationPolicy":{"$ref":"#/components/schemas/DistributedMpiLauncherCreationPolicyRules"},"minReplicas":{"$ref":"#/components/schemas/IntegerRules"},"maxReplicas":{"$ref":"#/components/schemas/IntegerRules"},"cleanPodPolicy":{"$ref":"#/components/schemas/DistributedCleanPodPolicyRules"}},"nullable":true,"type":"object"},"DistributedFrameworkRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/DistributedFrameworkOptions"}],"nullable":true,"type":"object"},"DistributedFrameworkOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/DistributedFramework"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"DistributedMpiLauncherCreationPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/DistributedMpiLauncherCreationPolicyOptions"}],"nullable":true,"type":"object"},"DistributedMpiLauncherCreationPolicyOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/DistributedMpiLauncherCreationPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"DistributedCleanPodPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/DistributedCleanPodPolicyOptions"}],"nullable":true,"type":"object"},"DistributedCleanPodPolicyOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/DistributedCleanPodPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"DistributedImposedAssets":{"properties":{"worker":{"$ref":"#/components/schemas/ImposedAssets"},"master":{"$ref":"#/components/schemas/ImposedAssets"}},"nullable":true,"type":"object"},"ImposedAssets":{"description":"a list of datasource assets to import into the policy. these datasources will be included in any workload that will be created in the scope of the policy.","type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"Timestamp":{"description":"The time at which an event occurred. e.g. the time an effective policy has been updated","type":"string","minLength":1,"format":"date-time"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404NotFound":{"description":"The specified resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy/distributed":{"get":{"summary":"Get a distributed policy.","description":"Retrieve the details of a distributed policy for a given organizational unit.","operationId":"get_distributed_policy_v2","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/PolicyScope"},{"$ref":"#/components/parameters/FilterByDepartment"},{"$ref":"#/components/parameters/FilterByProject"},{"$ref":"#/components/parameters/FilterByCluster"}],"responses":{"200":{"description":"Request completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributedPolicyV2"}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"404":{"$ref":"#/components/responses/404NotFound"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Overwrite a distributed policy.

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

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"ValidateOnly":{"name":"validateOnly","in":"query","required":false,"description":"Validate the given policy payload without applying it","schema":{"type":"boolean"}}},"schemas":{"DistributedPolicyOverwriteRequestV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyCreationFields"},"policy":{"$ref":"#/components/schemas/DistributedPolicyDefaultsAndRulesV2"}},"type":"object"},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"DistributedPolicyDefaultsAndRulesV2":{"properties":{"defaults":{"$ref":"#/components/schemas/DistributedPolicyDefaultsV2"},"rules":{"$ref":"#/components/schemas/DistributedPolicyRulesV2"},"imposedAssets":{"$ref":"#/components/schemas/DistributedImposedAssets"},"status":{"$ref":"#/components/schemas/PolicyValidationStatus"}},"nullable":true,"type":"object"},"DistributedPolicyDefaultsV2":{"properties":{"worker":{"allOf":[{"$ref":"#/components/schemas/ReplicaDefaultsV2"},{"$ref":"#/components/schemas/DistributedFields"}],"nullable":true,"type":"object"},"master":{"$ref":"#/components/schemas/ReplicaDefaultsV2"}},"nullable":true,"type":"object"},"ReplicaDefaultsV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFields"},{"$ref":"#/components/schemas/NodeRelatedFlatFields"},{"$ref":"#/components/schemas/CommonItemizedDefaults"},{"$ref":"#/components/schemas/AdvancedFlatFields"},{"$ref":"#/components/schemas/ConnectivityDefaults"},{"$ref":"#/components/schemas/Security"},{"$ref":"#/components/schemas/ComputeDefaults"},{"$ref":"#/components/schemas/StorageDefaults"},{"$ref":"#/components/schemas/NonInferenceFlatFields"}],"nullable":true,"type":"object"},"CommonFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridable"},{"$ref":"#/components/schemas/ContainerNonOverridable"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPod"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPG"}],"nullable":true,"type":"object"},"ContainerOverridable":{"description":"Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"command":{"description":"A command to the server as the entry point of the container running the workload.","type":"string","minLength":1,"nullable":true},"args":{"description":"Arguments to the command that the container running the workload executes.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ContainerNonOverridable":{"description":"Container non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"image":{"description":"Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a workload.","type":"string","minLength":1,"nullable":true},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicy"},"workingDir":{"description":"Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.","type":"string","minLength":1,"nullable":true},"createHomeDir":{"description":"When set to `true`, creates a home directory for the container.","type":"boolean","nullable":true},"probes":{"$ref":"#/components/schemas/Probes"}},"nullable":true,"type":"object"},"ImagePullPolicy":{"description":"Image pull policy. Defaults to `Always` if `:latest` tag is specified, otherwise it is `IfNotPresent`.","type":"string","minLength":1,"enum":["Always","Never","IfNotPresent"],"nullable":true},"Probes":{"description":"Probes are used to determine if the container is healthy and ready to accept traffic.","type":"object","properties":{"readiness":{"$ref":"#/components/schemas/Probe"}},"nullable":true},"Probe":{"type":"object","properties":{"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness or readiness probes are initiated.","type":"integer","format":"int32","minimum":0,"nullable":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe.","type":"integer","format":"int32","minimum":1,"nullable":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out.","type":"integer","format":"int32","minimum":1,"nullable":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed.","type":"integer","format":"int32","minimum":1,"nullable":true},"failureThreshold":{"description":"When a probe fails, the number of times to try before giving up.","type":"integer","format":"int32","minimum":1,"nullable":true},"handler":{"$ref":"#/components/schemas/ProbeHandler"}},"nullable":true},"ProbeHandler":{"description":"The action taken to determine the health of the container. (mandatory)","type":"object","properties":{"httpGet":{"description":"An action based on HTTP Get requests.","type":"object","properties":{"path":{"description":"Path to access on the HTTP server, defaults to /.","type":"string","pattern":"^(\\x2F[a-zA-Z0-9\\-_.\\x2F]*)?$","nullable":true},"port":{"description":"Number of the port to access on the container.","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"host":{"description":"Host name to connect to, defaults to the pod IP.","type":"string","format":"hostname","nullable":true},"scheme":{"$ref":"#/components/schemas/ProbeHandlerScheme"}}}},"nullable":true},"ProbeHandlerScheme":{"description":"Scheme to use for connecting to the host, defaults to HTTP.","type":"string","enum":["HTTP","HTTPS"],"nullable":true},"ResourcesFlatFieldsPerPod":{"description":"Resource parameters.","properties":{"nodeType":{"description":"Nodes (machines), or a group of nodes on which the workload will run. To use this feature, your Administrator will need to label nodes. For more information, see [Group Nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/researcher-setup/limit-to-node-group). When using this flag with with Project-based affinity, it refines the list of allowable node groups set in the Project. For more information, see [Projects](https://docshub.run.ai/guides/platform-management/aiinitiatives/organization/projects).","type":"string","minLength":1,"nullable":true},"nodeAffinityRequired":{"$ref":"#/components/schemas/NodeAffinityRequired"},"podAffinity":{"$ref":"#/components/schemas/PodAffinity"}},"nullable":true,"type":"object"},"NodeAffinityRequired":{"type":"object","description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","properties":{"nodeSelectorTerms":{"description":"A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/components/schemas/NodeSelectorTerm"}}},"nullable":true},"NodeSelectorTerm":{"type":"object","description":"A null or empty node selector term matches no objects. The requirements of them are ANDed.","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"$ref":"#/components/schemas/MatchExpression"}}},"nullable":true},"MatchExpression":{"type":"object","description":"A selector that contains values, a key, and an operator that relates the key and values.","properties":{"key":{"description":"The label key that the selector applies to (mandatory).","type":"string"},"operator":{"$ref":"#/components/schemas/MatchExpressionOperator"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.","type":"array","items":{"type":"string"}}},"required":["key","operator"],"nullable":true},"MatchExpressionOperator":{"description":"Represents a key's relationship to a set of values (mandatory).","type":"string","enum":["In","NotIn","Exists","DoesNotExist","Gt","Lt"]},"PodAffinity":{"description":"Pod affinity scheduling rules (e.g. co-locate this workload in the same node, zone, etc. as some other workloads).","type":"object","properties":{"type":{"$ref":"#/components/schemas/PodAffinityType"},"key":{"description":"The label key to use. (mandatory)","type":"string","nullable":true}},"nullable":true},"PodAffinityType":{"description":"The affinity type, required or preferred. (mandatory)","type":"string","enum":["Required","Preferred"],"nullable":true},"ResourcesFlatFieldsPerPG":{"description":"Resource parameters.","properties":{"category":{"$ref":"#/components/schemas/Category"},"priorityClass":{"$ref":"#/components/schemas/PriorityClass"}},"nullable":true,"type":"object"},"Category":{"description":"Specify the workload category assigned to the workload. Categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.","type":"string","nullable":true},"PriorityClass":{"description":"Specifies the priority class for the workload.  Valid values are: very-low, low, medium-low, medium, medium-high, high, very-high.  You can use this parameter to adjust the workload's scheduling behavior.  Each workload type has a default priority.  To view the default priority for each workload type, use the GET /workload-types endpoint.","type":"string","nullable":true},"NodeRelatedFlatFields":{"description":"Node related parameters.","properties":{"nodePools":{"description":"A prioritized list of node pools for the scheduler to run the workload on. The scheduler will always try to use the first node pool before moving to the next one if the first is not available.","type":"array","items":{"type":"string"},"nullable":true}},"nullable":true,"type":"object"},"CommonItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldDefaults"},{"$ref":"#/components/schemas/AdvancedItemizedDefaults"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldDefaults":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/EnvironmentVariablesDefaults"}},"nullable":true,"type":"object"},"EnvironmentVariablesDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/EnvironmentVariables"}},"nullable":true,"type":"object"},"EnvironmentVariables":{"description":"Set of environment variables to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"nullable":true},"EnvironmentVariable":{"description":"Details of an environment variable which is populated into the container.","properties":{"name":{"description":"The name of the environment variable. (mandatory)","type":"string","minLength":1,"nullable":true},"value":{"description":"The value of the environment variable. (mutually exclusive with secret, credential, configMap and podFieldRef)","type":"string","nullable":true},"secret":{"$ref":"#/components/schemas/EnvironmentVariableSecret"},"configMap":{"$ref":"#/components/schemas/EnvironmentVariableConfigMap"},"podFieldRef":{"$ref":"#/components/schemas/EnvironmentVariablePodFieldReference"},"exclude":{"description":"Use 'true' in case the environment variable is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true},"description":{"description":"Description of the environment variable.","type":"string","nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableSecret":{"description":"Details of the secret and key use to populate the environment variable","properties":{"name":{"description":"The name of the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableConfigMap":{"description":"Details of the configMap and key use to populate the environment variable","properties":{"name":{"description":"The name of the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariablePodFieldReference":{"description":"Details of the field-reference and key use to populate the environment variable","properties":{"path":{"description":"The field path resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"AdvancedItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldDefaults"},{"$ref":"#/components/schemas/LabelsFieldDefaults"},{"$ref":"#/components/schemas/ImagePullSecretsFieldDefaults"},{"$ref":"#/components/schemas/TolerationsFieldDefaults"}],"type":"object","nullable":true},"AnnotationsFieldDefaults":{"properties":{"annotations":{"$ref":"#/components/schemas/AnnotationsDefaults"}},"nullable":true,"type":"object"},"AnnotationsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Annotations"}},"nullable":true,"type":"object"},"Annotations":{"description":"Set of annotations to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Annotation"},"nullable":true},"Annotation":{"description":"Annotation details to be populated into the container.","properties":{"name":{"description":"The name of the annotation (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the annotation.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the annotation is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"LabelsFieldDefaults":{"properties":{"labels":{"$ref":"#/components/schemas/LabelsDefaults"}},"nullable":true,"type":"object"},"LabelsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Labels"}},"nullable":true,"type":"object"},"Labels":{"description":"Set of labels to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Label"},"nullable":true},"Label":{"description":"Label details to be populated into the container.","properties":{"name":{"description":"The name of the label (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the label.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ImagePullSecretsFieldDefaults":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsDefaults"}},"nullable":true,"type":"object"},"ImagePullSecretsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/ImagePullSecrets"}},"nullable":true,"type":"object"},"ImagePullSecrets":{"description":"A list of references to Kubernetes secrets in the same namespace used for pulling container images.","type":"array","items":{"$ref":"#/components/schemas/ImagePullSecret"},"nullable":true},"ImagePullSecret":{"description":"A reference to a secret in the same namespace used to pull container images.","properties":{"name":{"type":"string","description":"The name of the Kubernetes secret containing the image pull credentials."},"userCredential":{"type":"boolean","description":"Indicates whether the secret is a user credential. Set to true if the secret was created by the user and is only accessible by them.","nullable":true},"exclude":{"description":"Use 'true' in case the secret is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"TolerationsFieldDefaults":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsDefaults"}},"nullable":true,"type":"object"},"TolerationsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Toleration"},"instances":{"$ref":"#/components/schemas/Tolerations"}},"nullable":true,"type":"object"},"Toleration":{"description":"Toleration details.","properties":{"name":{"description":"The name of the toleration.","type":"string","minLength":1,"nullable":true},"operator":{"$ref":"#/components/schemas/TolerationOperator"},"key":{"description":"The taint key that the toleration applies to. (mandatory)","type":"string","nullable":true},"value":{"description":"The taint value the toleration matches to. Mandatory if operator is Exists, forbidden otherwise.","type":"string","nullable":true},"effect":{"$ref":"#/components/schemas/TolerationEffect"},"seconds":{"description":"The period of time the toleration tolerates the taint. Valid only if effect is NoExecute. taint.","type":"integer","minimum":1,"nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TolerationOperator":{"description":"A key's relationship to the value. Equal uses key and value. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. (mandatory)","type":"string","enum":["Equal","Exists"],"nullable":true},"TolerationEffect":{"description":"The taint effect to match. (mandatory)","type":"string","enum":["NoSchedule","NoExecute","PreferNoSchedule","Any"],"nullable":true},"Tolerations":{"description":"Set of tolerations to apply to the workload.","type":"array","items":{"$ref":"#/components/schemas/Toleration"},"nullable":true},"AdvancedFlatFields":{"properties":{"terminateAfterPreemption":{"description":"Indicates if the job should be terminated by the system after it has been preempted.","type":"boolean","nullable":true},"autoDeletionTimeAfterCompletionSeconds":{"description":"Specifies the duration after which a finished workload (completed or failed) will be automatically deleted. The default is 30 days.","format":"int64","type":"integer","nullable":true},"terminationGracePeriodSeconds":{"description":"Duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down).","format":"int64","type":"integer","minimum":0,"nullable":true},"backoffLimit":{"description":"Specifies the number of retries before marking a workload as failed (not applicable to Inference workloads). The default value is 6.","format":"int64","type":"integer","nullable":true},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicy"}},"nullable":true,"type":"object"},"RestartPolicy":{"description":"Specify the restart policy of the workload pods. Default is empty, which is determine by the framework default","type":"string","minLength":1,"enum":["Always","Never","OnFailure"],"nullable":true},"ConnectivityDefaults":{"properties":{"ports":{"$ref":"#/components/schemas/PortsDefaults"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsDefaults"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsDefaults"}},"nullable":true,"type":"object"},"PortsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Port"},"instances":{"$ref":"#/components/schemas/Ports"}},"nullable":true,"type":"object"},"Port":{"description":"A port for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"serviceType":{"$ref":"#/components/schemas/PortServiceType"},"external":{"description":"The external port which allows a connection to the container port. If not specified, the port will be auto-generated by the system..","type":"integer","format":"int32","nullable":true},"toolType":{"description":"The tool type that runs on this port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this port.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PortServiceType":{"description":"The service type of the port (mandatory).","type":"string","enum":["LoadBalancer","NodePort","ClusterIP"],"nullable":true},"Ports":{"description":"Set of container ports that the workload exposes.","type":"array","items":{"$ref":"#/components/schemas/Port"},"nullable":true},"ExposedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrl"},"instances":{"$ref":"#/components/schemas/ExposedUrls"}},"nullable":true,"type":"object"},"ExposedUrl":{"description":"A URL for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","nullable":true},"url":{"description":"The URL for connecting to the container port. If not specified, the URL will be auto-generated by the system..","type":"string","nullable":true},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"toolType":{"description":"The tool type that runs on this container port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this url.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the instance is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExposedUrls":{"description":"Set of container ports that the workload exposes via URLs.","type":"array","items":{"$ref":"#/components/schemas/ExposedUrl"},"nullable":true},"RelatedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrl"},"instances":{"$ref":"#/components/schemas/RelatedUrls"}},"nullable":true,"type":"object"},"RelatedUrl":{"description":"A URL that is related to the workload. For example, a URL to an external server providing statistics or logging about the workload.","properties":{"url":{"description":"The URL for connecting an external service related to the workload. (mandatory)","type":"string","nullable":true},"type":{"description":"The type of service that the url provides. For example, wandb (Weights & Biases). (mandatory)","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"RelatedUrls":{"description":"Set of URLs that are related to the workload.","type":"array","items":{"$ref":"#/components/schemas/RelatedUrl"},"nullable":true},"Security":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFields"}},"nullable":true,"type":"object"},"SecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFields"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFields"}],"nullable":true,"type":"object"},"CommonSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridable"},{"$ref":"#/components/schemas/CommonSecurityOverridable"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridable":{"description":"Security non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSource"},"capabilities":{"description":"Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.","type":"array","items":{"$ref":"#/components/schemas/Capability"},"nullable":true},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileType"},"runAsNonRoot":{"description":"Force the container to run as a non-root user.","type":"boolean","nullable":true},"readOnlyRootFilesystem":{"description":"If true, mounts the container's root filesystem as read-only.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"UidGidSource":{"description":"Indicate the way to determine the user and group ids of the container. The options are a. `fromTheImage` - user and group ids are determined by the docker image that the container runs. this is the default option. b. `custom` - user and group ids can be specified in the environment asset and/or the workload creation request. c. `idpToken` - user and group ids are determined according to the identity provider (idp) access token. This option is intended for internal use of the environment UI form. For more information, see [User Identity](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/runai-setup/config/non-root-containers/).","type":"string","enum":["fromTheImage","fromIdpToken","custom"],"nullable":true},"Capability":{"type":"string","enum":["AUDIT_CONTROL","AUDIT_READ","AUDIT_WRITE","BLOCK_SUSPEND","CHOWN","DAC_OVERRIDE","DAC_READ_SEARCH","FOWNER","FSETID","IPC_LOCK","IPC_OWNER","KILL","LEASE","LINUX_IMMUTABLE","MAC_ADMIN","MAC_OVERRIDE","MKNOD","NET_ADMIN","NET_BIND_SERVICE","NET_BROADCAST","NET_RAW","SETGID","SETFCAP","SETPCAP","SETUID","SYS_ADMIN","SYS_BOOT","SYS_CHROOT","SYS_MODULE","SYS_NICE","SYS_PACCT","SYS_PTRACE","SYS_RAWIO","SYS_RESOURCE","SYS_TIME","SYS_TTY_CONFIG","SYSLOG","WAKE_ALARM"]},"SeccompProfileType":{"description":"Indicates which kind of seccomp profile will be applied to the container. The options are a. `RuntimeDefault` - the container runtime default profile should be used. b. `Unconfined` - no profile should be applied. c. `Localhost` is not yet supported by Run:ai.","type":"string","enum":["RuntimeDefault","Unconfined","Localhost"],"nullable":true},"CommonSecurityOverridable":{"description":"Security overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"runAsUid":{"description":"The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsUid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"runAsGid":{"description":"The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsGid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"supplementalGroups":{"description":"Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled. Using an empty string implies reverting the supplementary groups of the image.","type":"string","nullable":true}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridable"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridable":{"description":"Security related fields. When used in assets context, those are environment asset fields that cannot be override in the submit workload request.","properties":{"allowPrivilegeEscalation":{"description":"Allow the container running the workload and all launched processes to gain additional privileges after the workload starts. For more information consult the User Identity in Container guide at https://docs.run.ai/admin/runai-setup/config/non-root-containers/","type":"boolean","nullable":true},"hostIpc":{"description":"Whether to enable host IPC. Defaults to false.","type":"boolean","nullable":true},"hostNetwork":{"description":"Whether to enable host networking. Default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ComputeDefaults":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsDefaults"}},"nullable":true,"type":"object"},"ComputeFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFields"},{"$ref":"#/components/schemas/ComputeItemizedFieldsDefaults"}],"nullable":true,"type":"object"},"ComputeFlatFields":{"properties":{"gpuDevicesRequest":{"description":"Requested number of GPU devices. Currently if more than one device is requested, it is not possible to provide values for gpuMemory, gpuPortion or migProfile [deprecated].","type":"integer","format":"int32","nullable":true,"minimum":0},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestType"},"gpuPortionRequest":{"description":"Required if and only if gpuRequestType is portion. States the portion of the GPU to allocate for the created workload, per GPU device, between 0 and 1. The default is no allocated GPUs.","type":"number","format":"double","nullable":true,"minimum":0},"gpuPortionLimit":{"description":"Limitations on the portion consumed by the workload, per GPU device. The system guarantees The gpuPotionLimit must be no less than the gpuPortionRequest.","type":"number","format":"double","nullable":true,"minimum":0},"gpuMemoryRequest":{"description":"Required if and only if gpuRequestType is memory. States the GPU memory to allocate for the created workload, per GPU device. Note that the workload will not be scheduled unless the system can guarantee this amount of GPU memory to the workload.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"gpuMemoryLimit":{"description":"Limitation on the memory consumed by the workload, per GPU device. The system guarantees The gpuMemoryLimit must be no less than gpuMemoryRequest.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"migProfile":{"$ref":"#/components/schemas/MigProfile","depracted":true},"cpuCoreRequest":{"description":"CPU units to allocate for the created workload (0.5, 1, .etc). The workload will receive at least this amount of CPU. Note that the workload will not be scheduled unless the system can guarantee this amount of CPUs to the workload.","format":"double","type":"number","nullable":true,"minimum":0},"cpuCoreLimit":{"description":"Limitations on the number of CPUs consumed by the workload (0.5, 1, .etc). The system guarantees that this workload will not be able to consume more than this amount of CPUs.","format":"double","type":"number","nullable":true,"minimum":0},"cpuMemoryRequest":{"description":"The amount of CPU memory to allocate for this workload (1G, 20M, .etc). The workload will receive at least this amount of memory. Note that the workload will not be scheduled unless the system can guarantee this amount of memory to the workload","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"cpuMemoryLimit":{"description":"Limitations on the CPU memory to allocate for this workload (1G, 20M, .etc). The system guarantees that this workload will not be able to consume more than this amount of memory. The workload will receive an error when trying to allocate more memory than this limit.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"largeShmRequest":{"description":"A large /dev/shm device to mount into a container running the created workload. An shm is a shared file system mounted on RAM.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"GpuRequestType":{"description":"Sets the unit type for GPU resources requests. Stated in terms of portion, memory or  mig profile [deprecated]. Sets the unit type for other GPU request fields. If `gpuDevicesRequest > 1`, only `portion` is supported. If `gpuDeviceRequest = 1`, the request type can be stated as `portion`, `memory` or `migProfile` [deprecated].","type":"string","minLength":1,"enum":["portion","memory","migProfile"],"nullable":true},"MigProfile":{"description":"Required only if `gpuRequestType` is `migProfile`. This states the memory profile to be used for the workload running NVIDIA Multi-Instance GPU (MIG) technology.","type":"string","deprecated":true,"minLength":1,"enum":["1g.5gb","1g.10gb","2g.10gb","2g.20gb","3g.20gb","3g.40gb","4g.20gb","4g.40gb","7g.40gb","7g.80gb"],"nullable":true},"ComputeItemizedFieldsDefaults":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesDefaults"}},"nullable":true,"type":"object"},"ExtendedResourcesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResource"},"instances":{"$ref":"#/components/schemas/ExtendedResources"}},"nullable":true,"type":"object"},"ExtendedResource":{"description":"Quantity of an extended resource.","properties":{"resource":{"description":"The name of the extended resource (mandatory)","type":"string","minLength":1,"nullable":true},"quantity":{"description":"The requested quantity for the resource.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the extended resource is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExtendedResources":{"description":"Extended resources and their quantity.","type":"array","items":{"$ref":"#/components/schemas/ExtendedResource"},"nullable":true},"StorageDefaults":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsDefaults"}},"nullable":true,"type":"object"},"StorageFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsDefaults"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsDefaults"}],"nullable":true,"type":"object"},"CommonStorageFieldsDefaults":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesDefaults"},"pvc":{"$ref":"#/components/schemas/PvcsDefaults"},"hostPath":{"$ref":"#/components/schemas/HostPathsDefaults"},"nfs":{"$ref":"#/components/schemas/NfssDefaults"},"git":{"$ref":"#/components/schemas/GitsDefaults"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsDefaults"},"secretVolume":{"$ref":"#/components/schemas/SecretsDefaults"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsDefaults"}},"nullable":true,"type":"object"},"DataVolumesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeInstance"},"instances":{"$ref":"#/components/schemas/DataVolumeItems"}},"nullable":true,"type":"object"},"DataVolumeInstance":{"allOf":[{"$ref":"#/components/schemas/DataVolume"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"DataVolume":{"properties":{"id":{"description":"The unique identifier of the data volume. (mandatory)","type":"string","format":"uuid","nullable":true},"mountPath":{"description":"The path where the data volume will be mounted. (mandatory)","type":"string","nullable":true}},"nullable":true,"type":"object"},"ExcludeField":{"properties":{"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"type":"object","nullable":true},"DataVolumeItems":{"description":"Set of data volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/DataVolumeInstance"},"nullable":true},"PvcsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcInstance"},"instances":{"$ref":"#/components/schemas/PvcItems"}},"nullable":true,"type":"object"},"PvcInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Pvc"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"StorageInstanceName":{"properties":{"name":{"description":"unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"Pvc":{"allOf":[{"$ref":"#/components/schemas/PvcFieldsUpdatable"},{"$ref":"#/components/schemas/PvcFieldsNonUpdatable"}]},"PvcFieldsUpdatable":{"properties":{"path":{"description":"Local path within the workload to which the PVC bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"PvcFieldsNonUpdatable":{"properties":{"existingPvc":{"description":"Verify existing PVC. PVC is assumed to exist when set to `true`. If set to `false`, the PVC will be created, if it does not exist.","type":"boolean","default":false,"nullable":true},"claimName":{"description":"Name for the PVC. Allow referencing it across workloads. If not provided, a name based on the workload name and scope will be auto-generated.","type":"string","minLength":1,"maxLength":63,"nullable":true},"readOnly":{"description":"Permit only read access to PVC.","type":"boolean","default":false,"nullable":true},"ephemeral":{"description":"Use `true` to set PVC to ephemeral. If set to `true`, the PVC will be deleted when the workload is stopped. Not supported for inference workloads.","type":"boolean","default":false,"nullable":true},"claimInfo":{"$ref":"#/components/schemas/ClaimInfo"},"dataSharing":{"description":"use `true` to share the PVC data to all projects under the selected scope.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"ClaimInfo":{"description":"Claim information for the newly created PVC. The information should not be provided when attempting to use existing PVC.","properties":{"size":{"$ref":"#/components/schemas/PvcClaimSize"},"storageClass":{"description":"Storage class name to associate with the PVC. This parameter may be omitted if there is a single storage class in the system, or you are using the default storage class. For more information, see [Storage class](https://kubernetes.io/docs/concepts/storage/storage-classes).","type":"string","minLength":1,"nullable":true},"accessModes":{"$ref":"#/components/schemas/PvcAccessModes"},"volumeMode":{"$ref":"#/components/schemas/PvcVolumeMode"},"addedAttrValues":{"$ref":"#/components/schemas/PvcAddedAttrValues"}},"nullable":true,"type":"object"},"PvcClaimSize":{"description":"Requested size for the PVC. Mandatory when existingPvc is false. Recommended sizes: TB/GB/MB/TIB/GIB/MIB","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"PvcAccessModes":{"description":"Requested access mode(s) for the newly created PVC.","properties":{"readWriteOnce":{"description":"Requesting claim that can be mounted in read/write mode to exactly one host. This is the default access mode.","type":"boolean","default":true,"nullable":true},"readOnlyMany":{"description":"Requesting claim that can be mounted in read-only mode to many hosts.","type":"boolean","default":false,"nullable":true},"readWriteMany":{"description":"Requesting claim that can be mounted in read/write mode to many hosts.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PvcVolumeMode":{"description":"The volume mode required by the claim. Choose Filesystem (default) or Block.","type":"string","enum":["Filesystem","Block"],"nullable":true},"PvcAddedAttrValues":{"description":"an optional array of key-values pairs that are written as annotations on the created PVC. the allowed attributes are determined according to the storage class configuration (see k8s-objects-tracker for further info).","type":"array","items":{"$ref":"#/components/schemas/PvcAddedAttrValue"}},"PvcAddedAttrValue":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":63,"pattern":"^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$"},"value":{"type":"string"}}},"PvcItems":{"description":"Set of pvc persistent volume claims to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/PvcInstance"},"nullable":true},"HostPathsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathInstance"},"instances":{"$ref":"#/components/schemas/HostPathItems"}},"nullable":true,"type":"object"},"HostPathInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/HostPath"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"HostPath":{"properties":{"path":{"description":"Local path within the controller to which the host volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","default":true,"nullable":true},"mountPath":{"description":"The path that the host volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagation"}},"nullable":true,"type":"object"},"HostPathMountPropagation":{"description":"Share this volumes mount with other containers. If set to HostToContainer, this volume mount will receive all subsequent mounts that are mounted to this volume or any of its subdirectories. In case of multiple hostPath entries, this field should have the same value for all of them.","type":"string","enum":["None","HostToContainer"],"nullable":true},"HostPathItems":{"description":"Set of host paths to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/HostPathInstance"},"nullable":true},"NfssDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsInstance"},"instances":{"$ref":"#/components/schemas/NfsItems"}},"nullable":true,"type":"object"},"NfsInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Nfs"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Nfs":{"properties":{"path":{"description":"Path that is exported by the NFS server (mandatory). For more information, see [NFS](https://kubernetes.io/docs/concepts/storage/volumes#nfs).","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the NFS export to be mounted with read-only permissions.","type":"boolean","default":true,"nullable":true},"server":{"description":"The hostname or IP address of the NFS server. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"The path that the NFS volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"NfsItems":{"description":"Set of nfs volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/NfsInstance"},"nullable":true},"GitsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/GitInstance"},"instances":{"$ref":"#/components/schemas/GitItems"}},"nullable":true,"type":"object"},"GitInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/GitCommon"},{"$ref":"#/components/schemas/GitPassword"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"GitCommon":{"properties":{"repository":{"description":"URL to a remote Git repository. The content of this repository will be mapped to the container running the workload. (mandatory)","type":"string","minLength":1,"nullable":true},"branch":{"description":"Specific branch to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"revision":{"description":"Specific revision to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the Git repository will be mapped (mandatory).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitPassword":{"properties":{"passwordSecret":{"description":"Secret containing the credentials of the repository (needed for non public repository which requires authentication).","type":"string","minLength":1,"nullable":true},"secretKeyOfUser":{"description":"The key to use for loading the user name from the secret. The default is `User`.","type":"string","minLength":1,"nullable":true},"secretKeyOfPassword":{"description":"The key to use for loading the password from the secret. The default is `Password`.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitItems":{"description":"Set of git repositories to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/GitInstance"},"nullable":true},"ConfigMapsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapInstance"},"instances":{"$ref":"#/components/schemas/ConfigMapField"}},"nullable":true,"type":"object"},"ConfigMapInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/ConfigMap"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"ConfigMap":{"properties":{"configMap":{"description":"The name of the ConfigMap resource. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"Local path within the workload to which the ConfigMap will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ConfigMapField":{"description":"Set of config map volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/ConfigMapInstance"},"nullable":true},"SecretsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretInstance2"},"instances":{"$ref":"#/components/schemas/SecretItems1"}},"nullable":true,"type":"object"},"SecretInstance2":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Secret5"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Secret5":{"allOf":[{"$ref":"#/components/schemas/SecretFieldsUpdatable"},{"$ref":"#/components/schemas/SecretFieldsNonUpdatable"}]},"SecretFieldsUpdatable":{"properties":{"mountPath":{"description":"Local path within the workload to which the Secret will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretFieldsNonUpdatable":{"properties":{"secret":{"description":"The name of the Secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretItems1":{"description":"Set of secret volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/SecretInstance2"},"nullable":true},"EmptyDirsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirInstance"},"instances":{"$ref":"#/components/schemas/EmptyDirItems"}},"nullable":true,"type":"object"},"EmptyDirInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/EmptyDir"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"EmptyDir":{"properties":{"path":{"description":"Local path within the workload to which the EmptyDir volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"medium":{"description":"The type of storage medium for the volume. Use \"Memory\" for memory-backed storage, or leave empty for disk-backed storage.","type":"string","minLength":1,"nullable":true},"sizeLimit":{"description":"The total amount of local storage or memory required for the emptyDir volume. Specify using Kubernetes quantity format (e.g., 1G, 500Mi).","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true}},"nullable":true,"type":"object"},"EmptyDirItems":{"description":"A list of emptyDir volumes to mount in the workload.","type":"array","items":{"$ref":"#/components/schemas/EmptyDirInstance"},"nullable":true},"NonInferenceStorageFieldsDefaults":{"properties":{"s3":{"$ref":"#/components/schemas/S3sDefaults"}},"nullable":true,"type":"object"},"S3sDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Instance"},"instances":{"$ref":"#/components/schemas/S3Items"}},"nullable":true,"type":"object"},"S3Instance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/S3Common"},{"$ref":"#/components/schemas/S3AccessKey"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"S3Common":{"properties":{"bucket":{"description":"The name of the bucket. (mandatory)","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the S3 bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"url":{"description":"The url of the S3 service provider. The default is the URL of the Amazon AWS S3 service.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3AccessKey":{"properties":{"accessKeySecret":{"description":"Name of the secret containing credentials of the S3 bucket. Used for private S3 buckets.","type":"string","minLength":1,"nullable":true},"secretKeyOfAccessKeyId":{"description":"The key to use for loading the access key id from the secret. The default is `AccessKeyId`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true},"secretKeyOfSecretKey":{"description":"The key to use for loading the secret key from the secret. The default is `SecretKey`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3Items":{"description":"Set of s3 buckets to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/S3Instance"},"nullable":true},"NonInferenceFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridable"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridable":{"description":"Container non Inference overrideable fields. It adds properties which are not allowed for Inference containers","properties":{"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.","type":"boolean","nullable":true},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"DistributedFields":{"properties":{"numWorkers":{"description":"the number of workers that will be allocated for running the workload.","type":"integer","minimum":1,"nullable":true},"distributedFramework":{"$ref":"#/components/schemas/DistributedFramework"},"slotsPerWorker":{"description":"Specifies the number of slots per worker used in hostfile. Defaults to 1. (applicable only for MPI)","type":"integer","minimum":1,"nullable":true,"default":1},"sshAuthMountPath":{"description":"Specifies the directory where SSH keys are mounted. (applicable only for MPI)","type":"string","nullable":true,"default":"/root/.ssh"},"mpiLauncherCreationPolicy":{"$ref":"#/components/schemas/DistributedMpiLauncherCreationPolicy"},"minReplicas":{"description":"the lower limit for the number of worker pods to which the training job can scale down. (applicable only for PyTorch)","type":"integer","nullable":true},"maxReplicas":{"description":"the upper limit for the number of worker pods that can be set by the autoscaler. Cannot be smaller than MinReplicas. (applicable only for PyTorch)","type":"integer","nullable":true},"cleanPodPolicy":{"$ref":"#/components/schemas/DistributedCleanPodPolicy"}},"nullable":true,"type":"object"},"DistributedFramework":{"description":"The distributed training framework used in the workload.","type":"string","enum":["MPI","PyTorch","TF","XGBoost","JAX"],"nullable":true},"DistributedMpiLauncherCreationPolicy":{"description":"Define whether the MPI Launcher is created in parallel with the workers, or if its creation is postponed until all workers are in  Ready state. This prevents failures when the launcher attempts to connect to workers that are not yet ready.","type":"string","enum":["AtStartup","WaitForWorkersReady"],"nullable":true},"DistributedCleanPodPolicy":{"description":"The policy describes how to deal with pods when the job is finished.","type":"string","enum":["None","All","Running"],"nullable":true},"DistributedPolicyRulesV2":{"properties":{"worker":{"allOf":[{"$ref":"#/components/schemas/ReplicaRulesV2"},{"$ref":"#/components/schemas/DistributedFieldsRules"}],"nullable":true,"type":"object"},"master":{"$ref":"#/components/schemas/ReplicaRulesV2"}},"nullable":true,"type":"object"},"ReplicaRulesV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFieldsRules"},{"$ref":"#/components/schemas/NodeRelatedFlatFieldsRules"},{"$ref":"#/components/schemas/CommonItemizedFieldsRules"},{"$ref":"#/components/schemas/AdvancedFlatFieldsRules"},{"$ref":"#/components/schemas/ConnectivityRules"},{"$ref":"#/components/schemas/SecurityRules"},{"$ref":"#/components/schemas/ComputeRules"},{"$ref":"#/components/schemas/StorageRules"},{"$ref":"#/components/schemas/NonInferenceFlatFieldsRules"}],"nullable":true,"type":"object"},"CommonFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridableRules"},{"$ref":"#/components/schemas/ContainerNonOverridableRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPodRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPGRules"}],"nullable":true,"type":"object"},"ContainerOverridableRules":{"description":"Container related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"command":{"$ref":"#/components/schemas/StringRules"},"args":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StringRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/StringRulesOptions"}],"nullable":true,"type":"object"},"StringRulesCommon":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true}}},"SourceOfRule":{"description":"This field is used by the system along with effective rules, in order to specify the org unit from which this effective rule has been derived. It should be left empty when sending apply policy requests.","required":["scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"isFallback":{"description":"source of this rule is the fallback policy","type":"boolean"}},"nullable":true,"type":"object"},"StringRulesOptions":{"properties":{"options":{"description":"Set of options that the value of the field must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"},"nullable":true}}},"StringOption":{"description":"One of the values that the field can be assigned to, when options police is applied on the field.","required":["value"],"properties":{"value":{"description":"The value that the field should hold","type":"string"},"displayed":{"description":"Textual description of the value. to be used by user interface applications.","type":"string","nullable":true}}},"ContainerNonOverridableRules":{"properties":{"image":{"$ref":"#/components/schemas/StringRules"},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicyRules"},"workingDir":{"$ref":"#/components/schemas/StringRules"},"createHomeDir":{"$ref":"#/components/schemas/BooleanRules"},"probes":{"$ref":"#/components/schemas/ProbesRules"}},"nullable":true,"type":"object"},"ImagePullPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ImagePullPolicyOptions"}],"nullable":true,"type":"object"},"ImagePullPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ImagePullPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"BooleanRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ProbesRules":{"properties":{"readiness":{"$ref":"#/components/schemas/ProbeRules"}},"nullable":true,"type":"object"},"ProbeRules":{"properties":{"initialDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"periodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"timeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"successThreshold":{"$ref":"#/components/schemas/IntegerRules"},"failureThreshold":{"$ref":"#/components/schemas/IntegerRules"},"handler":{"$ref":"#/components/schemas/ProbeHandlerRules"}},"nullable":true,"type":"object"},"IntegerRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"DefaultFromRule":{"properties":{"field":{"description":"The default of this field is taken from another field, with optional factor. The specified field must belong to the same workload section (compute, security, etc). For itemized field, the value of the field will be taken from the same instance.","type":"string","nullable":true},"factor":{"description":"Multiple the value of the fromField by this factor to get the value for this field For example, if factor is 2 and defaultFrom field has value of 8, the calculated default will be determined to be 16.","type":"number","format":"double","nullable":true,"default":1}},"nullable":true,"type":"object"},"ProbeHandlerRules":{"properties":{"httpGet":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"port":{"$ref":"#/components/schemas/IntegerRules"},"host":{"$ref":"#/components/schemas/StringRules"},"scheme":{"$ref":"#/components/schemas/StringRules"}}}},"nullable":true,"type":"object"},"ResourcesFlatFieldsPerPodRules":{"description":"Resource related parameters.","properties":{"nodeType":{"$ref":"#/components/schemas/StringRules"},"nodeAffinityRequired":{"$ref":"#/components/schemas/ArbitraryRules"},"podAffinity":{"$ref":"#/components/schemas/PodAffinityRules"}},"nullable":true,"type":"object"},"ArbitraryRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this arbitrary object is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"PodAffinityRules":{"properties":{"type":{"$ref":"#/components/schemas/PodAffinityTypeRules"},"key":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PodAffinityTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PodAffinityTypeOptions"}],"nullable":true,"type":"object"},"PodAffinityTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PodAffinityType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"type":"object"},"ResourcesFlatFieldsPerPGRules":{"description":"Resource related parameters.","properties":{"category":{"$ref":"#/components/schemas/StringRules"},"priorityClass":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NodeRelatedFlatFieldsRules":{"description":"Node pools related parameters.","properties":{"nodePools":{"$ref":"#/components/schemas/ArrayRules"}},"nullable":true,"type":"object"},"ArrayRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this array is mandatory. Mandatory array must include at least one item. default to false.","type":"boolean","nullable":true},"options":{"description":"Set of options that the value of each item of the array must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"}},"canEdit":{"description":"Whether the value of the array, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"CommonItemizedFieldsRules":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldRules"},{"$ref":"#/components/schemas/AdvancedItemizedRules"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldRules":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"InstancesRules":{"properties":{"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ItemRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canAdd":{"description":"Whether it is permitted to add items. Default to true.","type":"boolean","nullable":true},"locked":{"description":"Set of keys for items that are \"locked\", i.e. cannot be removed or deleted.","type":"array","items":{"type":"string"}}},"nullable":true,"type":"object"},"AdvancedItemizedRules":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldRules"},{"$ref":"#/components/schemas/LabelsFieldRules"},{"$ref":"#/components/schemas/ImagePullSecretsFieldRules"},{"$ref":"#/components/schemas/TolerationsFieldRules"}],"type":"object","nullable":true},"AnnotationsFieldRules":{"properties":{"annotations":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"LabelsFieldRules":{"properties":{"labels":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"ImagePullSecretsFieldRules":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ImagePullSecretsRulesAttributes"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRulesAttributes":{"description":"Rules for the attributes of imagePullSecrets","properties":{"name":{"$ref":"#/components/schemas/StringRules"},"userCredentials":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationsFieldRules":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsRules"}},"nullable":true,"type":"object"},"TolerationsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/TolerationRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"TolerationRules":{"description":"Toleration details.","properties":{"operator":{"$ref":"#/components/schemas/TolerationOperatorRules"},"key":{"$ref":"#/components/schemas/StringRules"},"value":{"$ref":"#/components/schemas/StringRules"},"effect":{"$ref":"#/components/schemas/TolerationEffectRules"},"seconds":{"$ref":"#/components/schemas/IntegerRules"},"exclude":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationOperatorRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationOperatorOptions"}],"nullable":true,"type":"object"},"TolerationOperatorOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationOperator"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"TolerationEffectRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationEffectOptions"}],"nullable":true,"type":"object"},"TolerationEffectOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationEffect"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"AdvancedFlatFieldsRules":{"properties":{"terminateAfterPreemption":{"$ref":"#/components/schemas/BooleanRules"},"autoDeletionTimeAfterCompletionSeconds":{"$ref":"#/components/schemas/IntegerRules"},"terminationGracePeriodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"backoffLimit":{"$ref":"#/components/schemas/IntegerRules"},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicyRule"}},"nullable":true,"type":"object"},"RestartPolicyRule":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/RestartPolicyOptions"}],"nullable":true,"type":"object"},"RestartPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for restartPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/RestartPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ConnectivityRules":{"properties":{"ports":{"$ref":"#/components/schemas/PortsRules"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsRules"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsRules"}},"nullable":true,"type":"object"},"PortsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PortRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PortRules":{"description":"Rules for port attributes","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"serviceType":{"$ref":"#/components/schemas/PortServiceTypeRules"},"customExternalPort":{"$ref":"#/components/schemas/BooleanRules"},"external":{"$ref":"#/components/schemas/IntegerRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PortServiceTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PortServiceTypeOptions"}],"nullable":true,"type":"object"},"PortServiceTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PortServiceType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ExposedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExposedUrlRules":{"description":"Rules for the attributed of exposedUrls","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"customUrl":{"$ref":"#/components/schemas/BooleanRules"},"url":{"$ref":"#/components/schemas/StringRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"RelatedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"RelatedUrlRules":{"description":"Rules for the attributes of relatedUrls","properties":{"url":{"$ref":"#/components/schemas/StringRules"},"type":{"$ref":"#/components/schemas/StringRules"},"name":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecurityRules":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFieldsRules"}},"nullable":true,"type":"object"},"SecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFieldsRules"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFieldsRules"}],"nullable":true,"type":"object"},"CommonSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridableRules"},{"$ref":"#/components/schemas/CommonSecurityOverridableRules"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridableRules":{"properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSourceRules"},"capabilities":{"$ref":"#/components/schemas/ArrayRules"},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileTypeRules"},"runAsNonRoot":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyRootFilesystem":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"UidGidSourceRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/UidGidSourceOptions"}],"nullable":true,"type":"object"},"UidGidSourceOptions":{"properties":{"options":{"description":"Limit the permitted values for uidGidSource to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/UidGidSource"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"SeccompProfileTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/SeccompProfileTypeOptions"}],"nullable":true,"type":"object"},"SeccompProfileTypeOptions":{"properties":{"options":{"description":"Limit the permitted values for secompProfileType to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/SeccompProfileType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"CommonSecurityOverridableRules":{"description":"Security related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"runAsUid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"runAsGid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"supplementalGroups":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"IntegerRulesOptional":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridableRules"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridableRules":{"properties":{"allowPrivilegeEscalation":{"$ref":"#/components/schemas/BooleanRules"},"hostIpc":{"$ref":"#/components/schemas/BooleanRules"},"hostNetwork":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ComputeRules":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsRules"}},"nullable":true,"type":"object"},"ComputeFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFieldsRules"},{"$ref":"#/components/schemas/ComputeItemizedFieldsRules"}],"nullable":true,"type":"object"},"ComputeFlatFieldsRules":{"properties":{"cpuCoreRequest":{"$ref":"#/components/schemas/NumberRules"},"cpuCoreLimit":{"$ref":"#/components/schemas/NumberRules"},"cpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"cpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"},"largeShmRequest":{"$ref":"#/components/schemas/BooleanRules"},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestRules"},"migProfile":{"$ref":"#/components/schemas/MigProfileRules","deprecated":true},"gpuDevicesRequest":{"$ref":"#/components/schemas/IntegerRules"},"gpuPortionRequest":{"$ref":"#/components/schemas/NumberRules"},"gpuPortionLimit":{"$ref":"#/components/schemas/NumberRules"},"gpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"gpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"}},"nullable":true,"type":"object"},"NumberRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"number","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"number","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=3, step=0.25 implies that the values the field can hold are 2, 2.25, 2.5 and 3.","type":"number","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"QuantityRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"max":{"description":"The maximum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"GpuRequestRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/GpuRequestOptions"}],"nullable":true,"type":"object"},"GpuRequestOptions":{"properties":{"options":{"description":"Limit the permitted values for gpuRequest to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/GpuRequestType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"MigProfileRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/MigProfileOptions"}],"nullable":true,"type":"object"},"MigProfileOptions":{"properties":{"options":{"description":"Limit the permitted values for migProfile to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/MigProfile"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object","deprecated":true},"ComputeItemizedFieldsRules":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesRules"}},"nullable":true,"type":"object"},"ExtendedResourcesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResourceRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExtendedResourceRules":{"description":"Rules for the attributes of extendedResources","properties":{"quantity":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StorageRules":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsRules"}},"nullable":true,"type":"object"},"StorageFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsRules"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsRules"}],"nullable":true,"type":"object"},"CommonStorageFieldsRules":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesRules"},"pvc":{"$ref":"#/components/schemas/PvcsRules"},"hostPath":{"$ref":"#/components/schemas/HostPathsRules"},"nfs":{"$ref":"#/components/schemas/NfssRules"},"git":{"$ref":"#/components/schemas/GitsRules"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsRules"},"secretVolume":{"$ref":"#/components/schemas/SecretsRules"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsRules"}},"nullable":true,"type":"object"},"DataVolumesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"DataVolumeRules":{"properties":{"id":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PvcsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PvcRules":{"properties":{"claimName":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"claimInfo":{"$ref":"#/components/schemas/ClaimInfoRules"}},"nullable":true,"type":"object"},"ClaimInfoRules":{"properties":{"size":{"$ref":"#/components/schemas/StringRules"},"storageClass":{"$ref":"#/components/schemas/StringRules"},"accessModes":{"$ref":"#/components/schemas/PvcAccessModesRules"}},"nullable":true,"type":"object"},"PvcAccessModesRules":{"description":"Rules for access mode(s) for a newly created PVC.","properties":{"readWriteOnce":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyMany":{"$ref":"#/components/schemas/BooleanRules"},"readWriteMany":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"HostPathsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"HostPathRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagationRules"}},"nullable":true,"type":"object"},"HostPathMountPropagationRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/HostPathMountPropagationOptions"}],"nullable":true,"type":"object"},"HostPathMountPropagationOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/HostPathMountPropagation"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}}},"NfssRules":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"NfsRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"server":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"GitsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/GitRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"GitRules":{"properties":{"repository":{"$ref":"#/components/schemas/StringRules"},"branch":{"$ref":"#/components/schemas/StringRules"},"revision":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ConfigMapsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ConfigMapRules":{"properties":{"configMap":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"subPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"SecretRules":{"properties":{"secret":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"EmptyDirsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"EmptyDirRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"medium":{"$ref":"#/components/schemas/StringRules"},"sizeLimit":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceStorageFieldsRules":{"properties":{"s3":{"$ref":"#/components/schemas/S3sRules"}},"nullable":true,"type":"object"},"S3sRules":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Rules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"S3Rules":{"properties":{"bucket":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"url":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridableRules"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridableRules":{"properties":{"tty":{"$ref":"#/components/schemas/BooleanRules"},"stdin":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"DistributedFieldsRules":{"properties":{"numWorkers":{"$ref":"#/components/schemas/IntegerRules"},"distributedFramework":{"$ref":"#/components/schemas/DistributedFrameworkRules"},"slotsPerWorker":{"$ref":"#/components/schemas/IntegerRules"},"sshAuthMountPath":{"$ref":"#/components/schemas/StringRules"},"mpiLauncherCreationPolicy":{"$ref":"#/components/schemas/DistributedMpiLauncherCreationPolicyRules"},"minReplicas":{"$ref":"#/components/schemas/IntegerRules"},"maxReplicas":{"$ref":"#/components/schemas/IntegerRules"},"cleanPodPolicy":{"$ref":"#/components/schemas/DistributedCleanPodPolicyRules"}},"nullable":true,"type":"object"},"DistributedFrameworkRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/DistributedFrameworkOptions"}],"nullable":true,"type":"object"},"DistributedFrameworkOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/DistributedFramework"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"DistributedMpiLauncherCreationPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/DistributedMpiLauncherCreationPolicyOptions"}],"nullable":true,"type":"object"},"DistributedMpiLauncherCreationPolicyOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/DistributedMpiLauncherCreationPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"DistributedCleanPodPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/DistributedCleanPodPolicyOptions"}],"nullable":true,"type":"object"},"DistributedCleanPodPolicyOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/DistributedCleanPodPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"DistributedImposedAssets":{"properties":{"worker":{"$ref":"#/components/schemas/ImposedAssets"},"master":{"$ref":"#/components/schemas/ImposedAssets"}},"nullable":true,"type":"object"},"ImposedAssets":{"description":"a list of datasource assets to import into the policy. these datasources will be included in any workload that will be created in the scope of the policy.","type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"DistributedPolicyV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyMeta"},"policy":{"$ref":"#/components/schemas/DistributedPolicyDefaultsAndRulesV2"},"effective":{"$ref":"#/components/schemas/DistributedPolicyDefaultsAndRulesV2"},"effectiveUpdatedAt":{"$ref":"#/components/schemas/Timestamp"}},"nullable":true,"type":"object"},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"Timestamp":{"description":"The time at which an event occurred. e.g. the time an effective policy has been updated","type":"string","minLength":1,"format":"date-time"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy/distributed":{"put":{"summary":"Overwrite a distributed policy.","description":"Use to apply a distributed policy for a given organizational unit.","operationId":"overwrite_distributed_policy_v2","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/ValidateOnly"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributedPolicyOverwriteRequestV2"}}}},"responses":{"200":{"description":"Policy applied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributedPolicyV2"}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Delete a distributed policy.

> Use to delete a distributed policy for a given organizational unit.

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"PolicyScope":{"name":"scope","in":"query","required":true,"description":"The scope that the policy relates to.","schema":{"type":"string","enum":["tenant","cluster","department","project"]}},"FilterByDepartment":{"name":"departmentId","in":"query","description":"Filter using the department id.","required":false,"schema":{"type":"string"}},"FilterByProject":{"name":"projectId","in":"query","description":"project id to filter by","required":false,"schema":{"type":"string"}},"FilterByCluster":{"name":"clusterId","in":"query","description":"Filter using the Universally Unique Identifier (UUID) of the cluster.","required":false,"schema":{"type":"string","format":"uuid"}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404NotFound":{"description":"The specified resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}}},"paths":{"/api/v2/policy/distributed":{"delete":{"summary":"Delete a distributed policy.","description":"Use to delete a distributed policy for a given organizational unit.","operationId":"delete_distributed_policy","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/PolicyScope"},{"$ref":"#/components/parameters/FilterByDepartment"},{"$ref":"#/components/parameters/FilterByProject"},{"$ref":"#/components/parameters/FilterByCluster"}],"responses":{"204":{"description":"The policy was deleted successfully."},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"404":{"$ref":"#/components/responses/404NotFound"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Update a distributed policy.

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

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"ValidateOnly":{"name":"validateOnly","in":"query","required":false,"description":"Validate the given policy payload without applying it","schema":{"type":"boolean"}}},"schemas":{"DistributedPolicyChangeRequestV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyCreationFields"},"policy":{"$ref":"#/components/schemas/DistributedPolicyDefaultsAndRulesV2"},"reset":{"$ref":"#/components/schemas/FieldsToReset"}},"type":"object"},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"DistributedPolicyDefaultsAndRulesV2":{"properties":{"defaults":{"$ref":"#/components/schemas/DistributedPolicyDefaultsV2"},"rules":{"$ref":"#/components/schemas/DistributedPolicyRulesV2"},"imposedAssets":{"$ref":"#/components/schemas/DistributedImposedAssets"},"status":{"$ref":"#/components/schemas/PolicyValidationStatus"}},"nullable":true,"type":"object"},"DistributedPolicyDefaultsV2":{"properties":{"worker":{"allOf":[{"$ref":"#/components/schemas/ReplicaDefaultsV2"},{"$ref":"#/components/schemas/DistributedFields"}],"nullable":true,"type":"object"},"master":{"$ref":"#/components/schemas/ReplicaDefaultsV2"}},"nullable":true,"type":"object"},"ReplicaDefaultsV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFields"},{"$ref":"#/components/schemas/NodeRelatedFlatFields"},{"$ref":"#/components/schemas/CommonItemizedDefaults"},{"$ref":"#/components/schemas/AdvancedFlatFields"},{"$ref":"#/components/schemas/ConnectivityDefaults"},{"$ref":"#/components/schemas/Security"},{"$ref":"#/components/schemas/ComputeDefaults"},{"$ref":"#/components/schemas/StorageDefaults"},{"$ref":"#/components/schemas/NonInferenceFlatFields"}],"nullable":true,"type":"object"},"CommonFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridable"},{"$ref":"#/components/schemas/ContainerNonOverridable"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPod"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPG"}],"nullable":true,"type":"object"},"ContainerOverridable":{"description":"Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"command":{"description":"A command to the server as the entry point of the container running the workload.","type":"string","minLength":1,"nullable":true},"args":{"description":"Arguments to the command that the container running the workload executes.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ContainerNonOverridable":{"description":"Container non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"image":{"description":"Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a workload.","type":"string","minLength":1,"nullable":true},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicy"},"workingDir":{"description":"Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.","type":"string","minLength":1,"nullable":true},"createHomeDir":{"description":"When set to `true`, creates a home directory for the container.","type":"boolean","nullable":true},"probes":{"$ref":"#/components/schemas/Probes"}},"nullable":true,"type":"object"},"ImagePullPolicy":{"description":"Image pull policy. Defaults to `Always` if `:latest` tag is specified, otherwise it is `IfNotPresent`.","type":"string","minLength":1,"enum":["Always","Never","IfNotPresent"],"nullable":true},"Probes":{"description":"Probes are used to determine if the container is healthy and ready to accept traffic.","type":"object","properties":{"readiness":{"$ref":"#/components/schemas/Probe"}},"nullable":true},"Probe":{"type":"object","properties":{"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness or readiness probes are initiated.","type":"integer","format":"int32","minimum":0,"nullable":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe.","type":"integer","format":"int32","minimum":1,"nullable":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out.","type":"integer","format":"int32","minimum":1,"nullable":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed.","type":"integer","format":"int32","minimum":1,"nullable":true},"failureThreshold":{"description":"When a probe fails, the number of times to try before giving up.","type":"integer","format":"int32","minimum":1,"nullable":true},"handler":{"$ref":"#/components/schemas/ProbeHandler"}},"nullable":true},"ProbeHandler":{"description":"The action taken to determine the health of the container. (mandatory)","type":"object","properties":{"httpGet":{"description":"An action based on HTTP Get requests.","type":"object","properties":{"path":{"description":"Path to access on the HTTP server, defaults to /.","type":"string","pattern":"^(\\x2F[a-zA-Z0-9\\-_.\\x2F]*)?$","nullable":true},"port":{"description":"Number of the port to access on the container.","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"host":{"description":"Host name to connect to, defaults to the pod IP.","type":"string","format":"hostname","nullable":true},"scheme":{"$ref":"#/components/schemas/ProbeHandlerScheme"}}}},"nullable":true},"ProbeHandlerScheme":{"description":"Scheme to use for connecting to the host, defaults to HTTP.","type":"string","enum":["HTTP","HTTPS"],"nullable":true},"ResourcesFlatFieldsPerPod":{"description":"Resource parameters.","properties":{"nodeType":{"description":"Nodes (machines), or a group of nodes on which the workload will run. To use this feature, your Administrator will need to label nodes. For more information, see [Group Nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/researcher-setup/limit-to-node-group). When using this flag with with Project-based affinity, it refines the list of allowable node groups set in the Project. For more information, see [Projects](https://docshub.run.ai/guides/platform-management/aiinitiatives/organization/projects).","type":"string","minLength":1,"nullable":true},"nodeAffinityRequired":{"$ref":"#/components/schemas/NodeAffinityRequired"},"podAffinity":{"$ref":"#/components/schemas/PodAffinity"}},"nullable":true,"type":"object"},"NodeAffinityRequired":{"type":"object","description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","properties":{"nodeSelectorTerms":{"description":"A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/components/schemas/NodeSelectorTerm"}}},"nullable":true},"NodeSelectorTerm":{"type":"object","description":"A null or empty node selector term matches no objects. The requirements of them are ANDed.","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"$ref":"#/components/schemas/MatchExpression"}}},"nullable":true},"MatchExpression":{"type":"object","description":"A selector that contains values, a key, and an operator that relates the key and values.","properties":{"key":{"description":"The label key that the selector applies to (mandatory).","type":"string"},"operator":{"$ref":"#/components/schemas/MatchExpressionOperator"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.","type":"array","items":{"type":"string"}}},"required":["key","operator"],"nullable":true},"MatchExpressionOperator":{"description":"Represents a key's relationship to a set of values (mandatory).","type":"string","enum":["In","NotIn","Exists","DoesNotExist","Gt","Lt"]},"PodAffinity":{"description":"Pod affinity scheduling rules (e.g. co-locate this workload in the same node, zone, etc. as some other workloads).","type":"object","properties":{"type":{"$ref":"#/components/schemas/PodAffinityType"},"key":{"description":"The label key to use. (mandatory)","type":"string","nullable":true}},"nullable":true},"PodAffinityType":{"description":"The affinity type, required or preferred. (mandatory)","type":"string","enum":["Required","Preferred"],"nullable":true},"ResourcesFlatFieldsPerPG":{"description":"Resource parameters.","properties":{"category":{"$ref":"#/components/schemas/Category"},"priorityClass":{"$ref":"#/components/schemas/PriorityClass"}},"nullable":true,"type":"object"},"Category":{"description":"Specify the workload category assigned to the workload. Categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.","type":"string","nullable":true},"PriorityClass":{"description":"Specifies the priority class for the workload.  Valid values are: very-low, low, medium-low, medium, medium-high, high, very-high.  You can use this parameter to adjust the workload's scheduling behavior.  Each workload type has a default priority.  To view the default priority for each workload type, use the GET /workload-types endpoint.","type":"string","nullable":true},"NodeRelatedFlatFields":{"description":"Node related parameters.","properties":{"nodePools":{"description":"A prioritized list of node pools for the scheduler to run the workload on. The scheduler will always try to use the first node pool before moving to the next one if the first is not available.","type":"array","items":{"type":"string"},"nullable":true}},"nullable":true,"type":"object"},"CommonItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldDefaults"},{"$ref":"#/components/schemas/AdvancedItemizedDefaults"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldDefaults":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/EnvironmentVariablesDefaults"}},"nullable":true,"type":"object"},"EnvironmentVariablesDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/EnvironmentVariables"}},"nullable":true,"type":"object"},"EnvironmentVariables":{"description":"Set of environment variables to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"nullable":true},"EnvironmentVariable":{"description":"Details of an environment variable which is populated into the container.","properties":{"name":{"description":"The name of the environment variable. (mandatory)","type":"string","minLength":1,"nullable":true},"value":{"description":"The value of the environment variable. (mutually exclusive with secret, credential, configMap and podFieldRef)","type":"string","nullable":true},"secret":{"$ref":"#/components/schemas/EnvironmentVariableSecret"},"configMap":{"$ref":"#/components/schemas/EnvironmentVariableConfigMap"},"podFieldRef":{"$ref":"#/components/schemas/EnvironmentVariablePodFieldReference"},"exclude":{"description":"Use 'true' in case the environment variable is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true},"description":{"description":"Description of the environment variable.","type":"string","nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableSecret":{"description":"Details of the secret and key use to populate the environment variable","properties":{"name":{"description":"The name of the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableConfigMap":{"description":"Details of the configMap and key use to populate the environment variable","properties":{"name":{"description":"The name of the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariablePodFieldReference":{"description":"Details of the field-reference and key use to populate the environment variable","properties":{"path":{"description":"The field path resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"AdvancedItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldDefaults"},{"$ref":"#/components/schemas/LabelsFieldDefaults"},{"$ref":"#/components/schemas/ImagePullSecretsFieldDefaults"},{"$ref":"#/components/schemas/TolerationsFieldDefaults"}],"type":"object","nullable":true},"AnnotationsFieldDefaults":{"properties":{"annotations":{"$ref":"#/components/schemas/AnnotationsDefaults"}},"nullable":true,"type":"object"},"AnnotationsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Annotations"}},"nullable":true,"type":"object"},"Annotations":{"description":"Set of annotations to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Annotation"},"nullable":true},"Annotation":{"description":"Annotation details to be populated into the container.","properties":{"name":{"description":"The name of the annotation (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the annotation.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the annotation is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"LabelsFieldDefaults":{"properties":{"labels":{"$ref":"#/components/schemas/LabelsDefaults"}},"nullable":true,"type":"object"},"LabelsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Labels"}},"nullable":true,"type":"object"},"Labels":{"description":"Set of labels to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Label"},"nullable":true},"Label":{"description":"Label details to be populated into the container.","properties":{"name":{"description":"The name of the label (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the label.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ImagePullSecretsFieldDefaults":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsDefaults"}},"nullable":true,"type":"object"},"ImagePullSecretsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/ImagePullSecrets"}},"nullable":true,"type":"object"},"ImagePullSecrets":{"description":"A list of references to Kubernetes secrets in the same namespace used for pulling container images.","type":"array","items":{"$ref":"#/components/schemas/ImagePullSecret"},"nullable":true},"ImagePullSecret":{"description":"A reference to a secret in the same namespace used to pull container images.","properties":{"name":{"type":"string","description":"The name of the Kubernetes secret containing the image pull credentials."},"userCredential":{"type":"boolean","description":"Indicates whether the secret is a user credential. Set to true if the secret was created by the user and is only accessible by them.","nullable":true},"exclude":{"description":"Use 'true' in case the secret is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"TolerationsFieldDefaults":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsDefaults"}},"nullable":true,"type":"object"},"TolerationsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Toleration"},"instances":{"$ref":"#/components/schemas/Tolerations"}},"nullable":true,"type":"object"},"Toleration":{"description":"Toleration details.","properties":{"name":{"description":"The name of the toleration.","type":"string","minLength":1,"nullable":true},"operator":{"$ref":"#/components/schemas/TolerationOperator"},"key":{"description":"The taint key that the toleration applies to. (mandatory)","type":"string","nullable":true},"value":{"description":"The taint value the toleration matches to. Mandatory if operator is Exists, forbidden otherwise.","type":"string","nullable":true},"effect":{"$ref":"#/components/schemas/TolerationEffect"},"seconds":{"description":"The period of time the toleration tolerates the taint. Valid only if effect is NoExecute. taint.","type":"integer","minimum":1,"nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TolerationOperator":{"description":"A key's relationship to the value. Equal uses key and value. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. (mandatory)","type":"string","enum":["Equal","Exists"],"nullable":true},"TolerationEffect":{"description":"The taint effect to match. (mandatory)","type":"string","enum":["NoSchedule","NoExecute","PreferNoSchedule","Any"],"nullable":true},"Tolerations":{"description":"Set of tolerations to apply to the workload.","type":"array","items":{"$ref":"#/components/schemas/Toleration"},"nullable":true},"AdvancedFlatFields":{"properties":{"terminateAfterPreemption":{"description":"Indicates if the job should be terminated by the system after it has been preempted.","type":"boolean","nullable":true},"autoDeletionTimeAfterCompletionSeconds":{"description":"Specifies the duration after which a finished workload (completed or failed) will be automatically deleted. The default is 30 days.","format":"int64","type":"integer","nullable":true},"terminationGracePeriodSeconds":{"description":"Duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down).","format":"int64","type":"integer","minimum":0,"nullable":true},"backoffLimit":{"description":"Specifies the number of retries before marking a workload as failed (not applicable to Inference workloads). The default value is 6.","format":"int64","type":"integer","nullable":true},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicy"}},"nullable":true,"type":"object"},"RestartPolicy":{"description":"Specify the restart policy of the workload pods. Default is empty, which is determine by the framework default","type":"string","minLength":1,"enum":["Always","Never","OnFailure"],"nullable":true},"ConnectivityDefaults":{"properties":{"ports":{"$ref":"#/components/schemas/PortsDefaults"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsDefaults"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsDefaults"}},"nullable":true,"type":"object"},"PortsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Port"},"instances":{"$ref":"#/components/schemas/Ports"}},"nullable":true,"type":"object"},"Port":{"description":"A port for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"serviceType":{"$ref":"#/components/schemas/PortServiceType"},"external":{"description":"The external port which allows a connection to the container port. If not specified, the port will be auto-generated by the system..","type":"integer","format":"int32","nullable":true},"toolType":{"description":"The tool type that runs on this port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this port.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PortServiceType":{"description":"The service type of the port (mandatory).","type":"string","enum":["LoadBalancer","NodePort","ClusterIP"],"nullable":true},"Ports":{"description":"Set of container ports that the workload exposes.","type":"array","items":{"$ref":"#/components/schemas/Port"},"nullable":true},"ExposedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrl"},"instances":{"$ref":"#/components/schemas/ExposedUrls"}},"nullable":true,"type":"object"},"ExposedUrl":{"description":"A URL for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","nullable":true},"url":{"description":"The URL for connecting to the container port. If not specified, the URL will be auto-generated by the system..","type":"string","nullable":true},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"toolType":{"description":"The tool type that runs on this container port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this url.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the instance is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExposedUrls":{"description":"Set of container ports that the workload exposes via URLs.","type":"array","items":{"$ref":"#/components/schemas/ExposedUrl"},"nullable":true},"RelatedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrl"},"instances":{"$ref":"#/components/schemas/RelatedUrls"}},"nullable":true,"type":"object"},"RelatedUrl":{"description":"A URL that is related to the workload. For example, a URL to an external server providing statistics or logging about the workload.","properties":{"url":{"description":"The URL for connecting an external service related to the workload. (mandatory)","type":"string","nullable":true},"type":{"description":"The type of service that the url provides. For example, wandb (Weights & Biases). (mandatory)","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"RelatedUrls":{"description":"Set of URLs that are related to the workload.","type":"array","items":{"$ref":"#/components/schemas/RelatedUrl"},"nullable":true},"Security":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFields"}},"nullable":true,"type":"object"},"SecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFields"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFields"}],"nullable":true,"type":"object"},"CommonSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridable"},{"$ref":"#/components/schemas/CommonSecurityOverridable"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridable":{"description":"Security non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSource"},"capabilities":{"description":"Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.","type":"array","items":{"$ref":"#/components/schemas/Capability"},"nullable":true},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileType"},"runAsNonRoot":{"description":"Force the container to run as a non-root user.","type":"boolean","nullable":true},"readOnlyRootFilesystem":{"description":"If true, mounts the container's root filesystem as read-only.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"UidGidSource":{"description":"Indicate the way to determine the user and group ids of the container. The options are a. `fromTheImage` - user and group ids are determined by the docker image that the container runs. this is the default option. b. `custom` - user and group ids can be specified in the environment asset and/or the workload creation request. c. `idpToken` - user and group ids are determined according to the identity provider (idp) access token. This option is intended for internal use of the environment UI form. For more information, see [User Identity](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/runai-setup/config/non-root-containers/).","type":"string","enum":["fromTheImage","fromIdpToken","custom"],"nullable":true},"Capability":{"type":"string","enum":["AUDIT_CONTROL","AUDIT_READ","AUDIT_WRITE","BLOCK_SUSPEND","CHOWN","DAC_OVERRIDE","DAC_READ_SEARCH","FOWNER","FSETID","IPC_LOCK","IPC_OWNER","KILL","LEASE","LINUX_IMMUTABLE","MAC_ADMIN","MAC_OVERRIDE","MKNOD","NET_ADMIN","NET_BIND_SERVICE","NET_BROADCAST","NET_RAW","SETGID","SETFCAP","SETPCAP","SETUID","SYS_ADMIN","SYS_BOOT","SYS_CHROOT","SYS_MODULE","SYS_NICE","SYS_PACCT","SYS_PTRACE","SYS_RAWIO","SYS_RESOURCE","SYS_TIME","SYS_TTY_CONFIG","SYSLOG","WAKE_ALARM"]},"SeccompProfileType":{"description":"Indicates which kind of seccomp profile will be applied to the container. The options are a. `RuntimeDefault` - the container runtime default profile should be used. b. `Unconfined` - no profile should be applied. c. `Localhost` is not yet supported by Run:ai.","type":"string","enum":["RuntimeDefault","Unconfined","Localhost"],"nullable":true},"CommonSecurityOverridable":{"description":"Security overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"runAsUid":{"description":"The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsUid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"runAsGid":{"description":"The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsGid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"supplementalGroups":{"description":"Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled. Using an empty string implies reverting the supplementary groups of the image.","type":"string","nullable":true}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridable"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridable":{"description":"Security related fields. When used in assets context, those are environment asset fields that cannot be override in the submit workload request.","properties":{"allowPrivilegeEscalation":{"description":"Allow the container running the workload and all launched processes to gain additional privileges after the workload starts. For more information consult the User Identity in Container guide at https://docs.run.ai/admin/runai-setup/config/non-root-containers/","type":"boolean","nullable":true},"hostIpc":{"description":"Whether to enable host IPC. Defaults to false.","type":"boolean","nullable":true},"hostNetwork":{"description":"Whether to enable host networking. Default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ComputeDefaults":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsDefaults"}},"nullable":true,"type":"object"},"ComputeFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFields"},{"$ref":"#/components/schemas/ComputeItemizedFieldsDefaults"}],"nullable":true,"type":"object"},"ComputeFlatFields":{"properties":{"gpuDevicesRequest":{"description":"Requested number of GPU devices. Currently if more than one device is requested, it is not possible to provide values for gpuMemory, gpuPortion or migProfile [deprecated].","type":"integer","format":"int32","nullable":true,"minimum":0},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestType"},"gpuPortionRequest":{"description":"Required if and only if gpuRequestType is portion. States the portion of the GPU to allocate for the created workload, per GPU device, between 0 and 1. The default is no allocated GPUs.","type":"number","format":"double","nullable":true,"minimum":0},"gpuPortionLimit":{"description":"Limitations on the portion consumed by the workload, per GPU device. The system guarantees The gpuPotionLimit must be no less than the gpuPortionRequest.","type":"number","format":"double","nullable":true,"minimum":0},"gpuMemoryRequest":{"description":"Required if and only if gpuRequestType is memory. States the GPU memory to allocate for the created workload, per GPU device. Note that the workload will not be scheduled unless the system can guarantee this amount of GPU memory to the workload.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"gpuMemoryLimit":{"description":"Limitation on the memory consumed by the workload, per GPU device. The system guarantees The gpuMemoryLimit must be no less than gpuMemoryRequest.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"migProfile":{"$ref":"#/components/schemas/MigProfile","depracted":true},"cpuCoreRequest":{"description":"CPU units to allocate for the created workload (0.5, 1, .etc). The workload will receive at least this amount of CPU. Note that the workload will not be scheduled unless the system can guarantee this amount of CPUs to the workload.","format":"double","type":"number","nullable":true,"minimum":0},"cpuCoreLimit":{"description":"Limitations on the number of CPUs consumed by the workload (0.5, 1, .etc). The system guarantees that this workload will not be able to consume more than this amount of CPUs.","format":"double","type":"number","nullable":true,"minimum":0},"cpuMemoryRequest":{"description":"The amount of CPU memory to allocate for this workload (1G, 20M, .etc). The workload will receive at least this amount of memory. Note that the workload will not be scheduled unless the system can guarantee this amount of memory to the workload","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"cpuMemoryLimit":{"description":"Limitations on the CPU memory to allocate for this workload (1G, 20M, .etc). The system guarantees that this workload will not be able to consume more than this amount of memory. The workload will receive an error when trying to allocate more memory than this limit.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"largeShmRequest":{"description":"A large /dev/shm device to mount into a container running the created workload. An shm is a shared file system mounted on RAM.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"GpuRequestType":{"description":"Sets the unit type for GPU resources requests. Stated in terms of portion, memory or  mig profile [deprecated]. Sets the unit type for other GPU request fields. If `gpuDevicesRequest > 1`, only `portion` is supported. If `gpuDeviceRequest = 1`, the request type can be stated as `portion`, `memory` or `migProfile` [deprecated].","type":"string","minLength":1,"enum":["portion","memory","migProfile"],"nullable":true},"MigProfile":{"description":"Required only if `gpuRequestType` is `migProfile`. This states the memory profile to be used for the workload running NVIDIA Multi-Instance GPU (MIG) technology.","type":"string","deprecated":true,"minLength":1,"enum":["1g.5gb","1g.10gb","2g.10gb","2g.20gb","3g.20gb","3g.40gb","4g.20gb","4g.40gb","7g.40gb","7g.80gb"],"nullable":true},"ComputeItemizedFieldsDefaults":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesDefaults"}},"nullable":true,"type":"object"},"ExtendedResourcesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResource"},"instances":{"$ref":"#/components/schemas/ExtendedResources"}},"nullable":true,"type":"object"},"ExtendedResource":{"description":"Quantity of an extended resource.","properties":{"resource":{"description":"The name of the extended resource (mandatory)","type":"string","minLength":1,"nullable":true},"quantity":{"description":"The requested quantity for the resource.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the extended resource is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExtendedResources":{"description":"Extended resources and their quantity.","type":"array","items":{"$ref":"#/components/schemas/ExtendedResource"},"nullable":true},"StorageDefaults":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsDefaults"}},"nullable":true,"type":"object"},"StorageFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsDefaults"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsDefaults"}],"nullable":true,"type":"object"},"CommonStorageFieldsDefaults":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesDefaults"},"pvc":{"$ref":"#/components/schemas/PvcsDefaults"},"hostPath":{"$ref":"#/components/schemas/HostPathsDefaults"},"nfs":{"$ref":"#/components/schemas/NfssDefaults"},"git":{"$ref":"#/components/schemas/GitsDefaults"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsDefaults"},"secretVolume":{"$ref":"#/components/schemas/SecretsDefaults"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsDefaults"}},"nullable":true,"type":"object"},"DataVolumesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeInstance"},"instances":{"$ref":"#/components/schemas/DataVolumeItems"}},"nullable":true,"type":"object"},"DataVolumeInstance":{"allOf":[{"$ref":"#/components/schemas/DataVolume"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"DataVolume":{"properties":{"id":{"description":"The unique identifier of the data volume. (mandatory)","type":"string","format":"uuid","nullable":true},"mountPath":{"description":"The path where the data volume will be mounted. (mandatory)","type":"string","nullable":true}},"nullable":true,"type":"object"},"ExcludeField":{"properties":{"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"type":"object","nullable":true},"DataVolumeItems":{"description":"Set of data volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/DataVolumeInstance"},"nullable":true},"PvcsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcInstance"},"instances":{"$ref":"#/components/schemas/PvcItems"}},"nullable":true,"type":"object"},"PvcInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Pvc"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"StorageInstanceName":{"properties":{"name":{"description":"unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"Pvc":{"allOf":[{"$ref":"#/components/schemas/PvcFieldsUpdatable"},{"$ref":"#/components/schemas/PvcFieldsNonUpdatable"}]},"PvcFieldsUpdatable":{"properties":{"path":{"description":"Local path within the workload to which the PVC bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"PvcFieldsNonUpdatable":{"properties":{"existingPvc":{"description":"Verify existing PVC. PVC is assumed to exist when set to `true`. If set to `false`, the PVC will be created, if it does not exist.","type":"boolean","default":false,"nullable":true},"claimName":{"description":"Name for the PVC. Allow referencing it across workloads. If not provided, a name based on the workload name and scope will be auto-generated.","type":"string","minLength":1,"maxLength":63,"nullable":true},"readOnly":{"description":"Permit only read access to PVC.","type":"boolean","default":false,"nullable":true},"ephemeral":{"description":"Use `true` to set PVC to ephemeral. If set to `true`, the PVC will be deleted when the workload is stopped. Not supported for inference workloads.","type":"boolean","default":false,"nullable":true},"claimInfo":{"$ref":"#/components/schemas/ClaimInfo"},"dataSharing":{"description":"use `true` to share the PVC data to all projects under the selected scope.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"ClaimInfo":{"description":"Claim information for the newly created PVC. The information should not be provided when attempting to use existing PVC.","properties":{"size":{"$ref":"#/components/schemas/PvcClaimSize"},"storageClass":{"description":"Storage class name to associate with the PVC. This parameter may be omitted if there is a single storage class in the system, or you are using the default storage class. For more information, see [Storage class](https://kubernetes.io/docs/concepts/storage/storage-classes).","type":"string","minLength":1,"nullable":true},"accessModes":{"$ref":"#/components/schemas/PvcAccessModes"},"volumeMode":{"$ref":"#/components/schemas/PvcVolumeMode"},"addedAttrValues":{"$ref":"#/components/schemas/PvcAddedAttrValues"}},"nullable":true,"type":"object"},"PvcClaimSize":{"description":"Requested size for the PVC. Mandatory when existingPvc is false. Recommended sizes: TB/GB/MB/TIB/GIB/MIB","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"PvcAccessModes":{"description":"Requested access mode(s) for the newly created PVC.","properties":{"readWriteOnce":{"description":"Requesting claim that can be mounted in read/write mode to exactly one host. This is the default access mode.","type":"boolean","default":true,"nullable":true},"readOnlyMany":{"description":"Requesting claim that can be mounted in read-only mode to many hosts.","type":"boolean","default":false,"nullable":true},"readWriteMany":{"description":"Requesting claim that can be mounted in read/write mode to many hosts.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PvcVolumeMode":{"description":"The volume mode required by the claim. Choose Filesystem (default) or Block.","type":"string","enum":["Filesystem","Block"],"nullable":true},"PvcAddedAttrValues":{"description":"an optional array of key-values pairs that are written as annotations on the created PVC. the allowed attributes are determined according to the storage class configuration (see k8s-objects-tracker for further info).","type":"array","items":{"$ref":"#/components/schemas/PvcAddedAttrValue"}},"PvcAddedAttrValue":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":63,"pattern":"^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$"},"value":{"type":"string"}}},"PvcItems":{"description":"Set of pvc persistent volume claims to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/PvcInstance"},"nullable":true},"HostPathsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathInstance"},"instances":{"$ref":"#/components/schemas/HostPathItems"}},"nullable":true,"type":"object"},"HostPathInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/HostPath"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"HostPath":{"properties":{"path":{"description":"Local path within the controller to which the host volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","default":true,"nullable":true},"mountPath":{"description":"The path that the host volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagation"}},"nullable":true,"type":"object"},"HostPathMountPropagation":{"description":"Share this volumes mount with other containers. If set to HostToContainer, this volume mount will receive all subsequent mounts that are mounted to this volume or any of its subdirectories. In case of multiple hostPath entries, this field should have the same value for all of them.","type":"string","enum":["None","HostToContainer"],"nullable":true},"HostPathItems":{"description":"Set of host paths to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/HostPathInstance"},"nullable":true},"NfssDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsInstance"},"instances":{"$ref":"#/components/schemas/NfsItems"}},"nullable":true,"type":"object"},"NfsInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Nfs"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Nfs":{"properties":{"path":{"description":"Path that is exported by the NFS server (mandatory). For more information, see [NFS](https://kubernetes.io/docs/concepts/storage/volumes#nfs).","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the NFS export to be mounted with read-only permissions.","type":"boolean","default":true,"nullable":true},"server":{"description":"The hostname or IP address of the NFS server. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"The path that the NFS volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"NfsItems":{"description":"Set of nfs volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/NfsInstance"},"nullable":true},"GitsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/GitInstance"},"instances":{"$ref":"#/components/schemas/GitItems"}},"nullable":true,"type":"object"},"GitInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/GitCommon"},{"$ref":"#/components/schemas/GitPassword"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"GitCommon":{"properties":{"repository":{"description":"URL to a remote Git repository. The content of this repository will be mapped to the container running the workload. (mandatory)","type":"string","minLength":1,"nullable":true},"branch":{"description":"Specific branch to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"revision":{"description":"Specific revision to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the Git repository will be mapped (mandatory).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitPassword":{"properties":{"passwordSecret":{"description":"Secret containing the credentials of the repository (needed for non public repository which requires authentication).","type":"string","minLength":1,"nullable":true},"secretKeyOfUser":{"description":"The key to use for loading the user name from the secret. The default is `User`.","type":"string","minLength":1,"nullable":true},"secretKeyOfPassword":{"description":"The key to use for loading the password from the secret. The default is `Password`.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitItems":{"description":"Set of git repositories to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/GitInstance"},"nullable":true},"ConfigMapsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapInstance"},"instances":{"$ref":"#/components/schemas/ConfigMapField"}},"nullable":true,"type":"object"},"ConfigMapInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/ConfigMap"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"ConfigMap":{"properties":{"configMap":{"description":"The name of the ConfigMap resource. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"Local path within the workload to which the ConfigMap will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ConfigMapField":{"description":"Set of config map volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/ConfigMapInstance"},"nullable":true},"SecretsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretInstance2"},"instances":{"$ref":"#/components/schemas/SecretItems1"}},"nullable":true,"type":"object"},"SecretInstance2":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Secret5"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Secret5":{"allOf":[{"$ref":"#/components/schemas/SecretFieldsUpdatable"},{"$ref":"#/components/schemas/SecretFieldsNonUpdatable"}]},"SecretFieldsUpdatable":{"properties":{"mountPath":{"description":"Local path within the workload to which the Secret will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretFieldsNonUpdatable":{"properties":{"secret":{"description":"The name of the Secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretItems1":{"description":"Set of secret volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/SecretInstance2"},"nullable":true},"EmptyDirsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirInstance"},"instances":{"$ref":"#/components/schemas/EmptyDirItems"}},"nullable":true,"type":"object"},"EmptyDirInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/EmptyDir"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"EmptyDir":{"properties":{"path":{"description":"Local path within the workload to which the EmptyDir volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"medium":{"description":"The type of storage medium for the volume. Use \"Memory\" for memory-backed storage, or leave empty for disk-backed storage.","type":"string","minLength":1,"nullable":true},"sizeLimit":{"description":"The total amount of local storage or memory required for the emptyDir volume. Specify using Kubernetes quantity format (e.g., 1G, 500Mi).","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true}},"nullable":true,"type":"object"},"EmptyDirItems":{"description":"A list of emptyDir volumes to mount in the workload.","type":"array","items":{"$ref":"#/components/schemas/EmptyDirInstance"},"nullable":true},"NonInferenceStorageFieldsDefaults":{"properties":{"s3":{"$ref":"#/components/schemas/S3sDefaults"}},"nullable":true,"type":"object"},"S3sDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Instance"},"instances":{"$ref":"#/components/schemas/S3Items"}},"nullable":true,"type":"object"},"S3Instance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/S3Common"},{"$ref":"#/components/schemas/S3AccessKey"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"S3Common":{"properties":{"bucket":{"description":"The name of the bucket. (mandatory)","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the S3 bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"url":{"description":"The url of the S3 service provider. The default is the URL of the Amazon AWS S3 service.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3AccessKey":{"properties":{"accessKeySecret":{"description":"Name of the secret containing credentials of the S3 bucket. Used for private S3 buckets.","type":"string","minLength":1,"nullable":true},"secretKeyOfAccessKeyId":{"description":"The key to use for loading the access key id from the secret. The default is `AccessKeyId`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true},"secretKeyOfSecretKey":{"description":"The key to use for loading the secret key from the secret. The default is `SecretKey`. For more information, see [Credentials access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"S3Items":{"description":"Set of s3 buckets to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/S3Instance"},"nullable":true},"NonInferenceFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridable"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridable":{"description":"Container non Inference overrideable fields. It adds properties which are not allowed for Inference containers","properties":{"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.","type":"boolean","nullable":true},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"DistributedFields":{"properties":{"numWorkers":{"description":"the number of workers that will be allocated for running the workload.","type":"integer","minimum":1,"nullable":true},"distributedFramework":{"$ref":"#/components/schemas/DistributedFramework"},"slotsPerWorker":{"description":"Specifies the number of slots per worker used in hostfile. Defaults to 1. (applicable only for MPI)","type":"integer","minimum":1,"nullable":true,"default":1},"sshAuthMountPath":{"description":"Specifies the directory where SSH keys are mounted. (applicable only for MPI)","type":"string","nullable":true,"default":"/root/.ssh"},"mpiLauncherCreationPolicy":{"$ref":"#/components/schemas/DistributedMpiLauncherCreationPolicy"},"minReplicas":{"description":"the lower limit for the number of worker pods to which the training job can scale down. (applicable only for PyTorch)","type":"integer","nullable":true},"maxReplicas":{"description":"the upper limit for the number of worker pods that can be set by the autoscaler. Cannot be smaller than MinReplicas. (applicable only for PyTorch)","type":"integer","nullable":true},"cleanPodPolicy":{"$ref":"#/components/schemas/DistributedCleanPodPolicy"}},"nullable":true,"type":"object"},"DistributedFramework":{"description":"The distributed training framework used in the workload.","type":"string","enum":["MPI","PyTorch","TF","XGBoost","JAX"],"nullable":true},"DistributedMpiLauncherCreationPolicy":{"description":"Define whether the MPI Launcher is created in parallel with the workers, or if its creation is postponed until all workers are in  Ready state. This prevents failures when the launcher attempts to connect to workers that are not yet ready.","type":"string","enum":["AtStartup","WaitForWorkersReady"],"nullable":true},"DistributedCleanPodPolicy":{"description":"The policy describes how to deal with pods when the job is finished.","type":"string","enum":["None","All","Running"],"nullable":true},"DistributedPolicyRulesV2":{"properties":{"worker":{"allOf":[{"$ref":"#/components/schemas/ReplicaRulesV2"},{"$ref":"#/components/schemas/DistributedFieldsRules"}],"nullable":true,"type":"object"},"master":{"$ref":"#/components/schemas/ReplicaRulesV2"}},"nullable":true,"type":"object"},"ReplicaRulesV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFieldsRules"},{"$ref":"#/components/schemas/NodeRelatedFlatFieldsRules"},{"$ref":"#/components/schemas/CommonItemizedFieldsRules"},{"$ref":"#/components/schemas/AdvancedFlatFieldsRules"},{"$ref":"#/components/schemas/ConnectivityRules"},{"$ref":"#/components/schemas/SecurityRules"},{"$ref":"#/components/schemas/ComputeRules"},{"$ref":"#/components/schemas/StorageRules"},{"$ref":"#/components/schemas/NonInferenceFlatFieldsRules"}],"nullable":true,"type":"object"},"CommonFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridableRules"},{"$ref":"#/components/schemas/ContainerNonOverridableRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPodRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPGRules"}],"nullable":true,"type":"object"},"ContainerOverridableRules":{"description":"Container related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"command":{"$ref":"#/components/schemas/StringRules"},"args":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StringRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/StringRulesOptions"}],"nullable":true,"type":"object"},"StringRulesCommon":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true}}},"SourceOfRule":{"description":"This field is used by the system along with effective rules, in order to specify the org unit from which this effective rule has been derived. It should be left empty when sending apply policy requests.","required":["scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"isFallback":{"description":"source of this rule is the fallback policy","type":"boolean"}},"nullable":true,"type":"object"},"StringRulesOptions":{"properties":{"options":{"description":"Set of options that the value of the field must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"},"nullable":true}}},"StringOption":{"description":"One of the values that the field can be assigned to, when options police is applied on the field.","required":["value"],"properties":{"value":{"description":"The value that the field should hold","type":"string"},"displayed":{"description":"Textual description of the value. to be used by user interface applications.","type":"string","nullable":true}}},"ContainerNonOverridableRules":{"properties":{"image":{"$ref":"#/components/schemas/StringRules"},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicyRules"},"workingDir":{"$ref":"#/components/schemas/StringRules"},"createHomeDir":{"$ref":"#/components/schemas/BooleanRules"},"probes":{"$ref":"#/components/schemas/ProbesRules"}},"nullable":true,"type":"object"},"ImagePullPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ImagePullPolicyOptions"}],"nullable":true,"type":"object"},"ImagePullPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ImagePullPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"BooleanRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ProbesRules":{"properties":{"readiness":{"$ref":"#/components/schemas/ProbeRules"}},"nullable":true,"type":"object"},"ProbeRules":{"properties":{"initialDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"periodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"timeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"successThreshold":{"$ref":"#/components/schemas/IntegerRules"},"failureThreshold":{"$ref":"#/components/schemas/IntegerRules"},"handler":{"$ref":"#/components/schemas/ProbeHandlerRules"}},"nullable":true,"type":"object"},"IntegerRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"DefaultFromRule":{"properties":{"field":{"description":"The default of this field is taken from another field, with optional factor. The specified field must belong to the same workload section (compute, security, etc). For itemized field, the value of the field will be taken from the same instance.","type":"string","nullable":true},"factor":{"description":"Multiple the value of the fromField by this factor to get the value for this field For example, if factor is 2 and defaultFrom field has value of 8, the calculated default will be determined to be 16.","type":"number","format":"double","nullable":true,"default":1}},"nullable":true,"type":"object"},"ProbeHandlerRules":{"properties":{"httpGet":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"port":{"$ref":"#/components/schemas/IntegerRules"},"host":{"$ref":"#/components/schemas/StringRules"},"scheme":{"$ref":"#/components/schemas/StringRules"}}}},"nullable":true,"type":"object"},"ResourcesFlatFieldsPerPodRules":{"description":"Resource related parameters.","properties":{"nodeType":{"$ref":"#/components/schemas/StringRules"},"nodeAffinityRequired":{"$ref":"#/components/schemas/ArbitraryRules"},"podAffinity":{"$ref":"#/components/schemas/PodAffinityRules"}},"nullable":true,"type":"object"},"ArbitraryRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this arbitrary object is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"PodAffinityRules":{"properties":{"type":{"$ref":"#/components/schemas/PodAffinityTypeRules"},"key":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PodAffinityTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PodAffinityTypeOptions"}],"nullable":true,"type":"object"},"PodAffinityTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PodAffinityType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"type":"object"},"ResourcesFlatFieldsPerPGRules":{"description":"Resource related parameters.","properties":{"category":{"$ref":"#/components/schemas/StringRules"},"priorityClass":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NodeRelatedFlatFieldsRules":{"description":"Node pools related parameters.","properties":{"nodePools":{"$ref":"#/components/schemas/ArrayRules"}},"nullable":true,"type":"object"},"ArrayRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this array is mandatory. Mandatory array must include at least one item. default to false.","type":"boolean","nullable":true},"options":{"description":"Set of options that the value of each item of the array must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"}},"canEdit":{"description":"Whether the value of the array, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"CommonItemizedFieldsRules":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldRules"},{"$ref":"#/components/schemas/AdvancedItemizedRules"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldRules":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"InstancesRules":{"properties":{"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ItemRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canAdd":{"description":"Whether it is permitted to add items. Default to true.","type":"boolean","nullable":true},"locked":{"description":"Set of keys for items that are \"locked\", i.e. cannot be removed or deleted.","type":"array","items":{"type":"string"}}},"nullable":true,"type":"object"},"AdvancedItemizedRules":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldRules"},{"$ref":"#/components/schemas/LabelsFieldRules"},{"$ref":"#/components/schemas/ImagePullSecretsFieldRules"},{"$ref":"#/components/schemas/TolerationsFieldRules"}],"type":"object","nullable":true},"AnnotationsFieldRules":{"properties":{"annotations":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"LabelsFieldRules":{"properties":{"labels":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"ImagePullSecretsFieldRules":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ImagePullSecretsRulesAttributes"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRulesAttributes":{"description":"Rules for the attributes of imagePullSecrets","properties":{"name":{"$ref":"#/components/schemas/StringRules"},"userCredentials":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationsFieldRules":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsRules"}},"nullable":true,"type":"object"},"TolerationsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/TolerationRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"TolerationRules":{"description":"Toleration details.","properties":{"operator":{"$ref":"#/components/schemas/TolerationOperatorRules"},"key":{"$ref":"#/components/schemas/StringRules"},"value":{"$ref":"#/components/schemas/StringRules"},"effect":{"$ref":"#/components/schemas/TolerationEffectRules"},"seconds":{"$ref":"#/components/schemas/IntegerRules"},"exclude":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationOperatorRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationOperatorOptions"}],"nullable":true,"type":"object"},"TolerationOperatorOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationOperator"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"TolerationEffectRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationEffectOptions"}],"nullable":true,"type":"object"},"TolerationEffectOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationEffect"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"AdvancedFlatFieldsRules":{"properties":{"terminateAfterPreemption":{"$ref":"#/components/schemas/BooleanRules"},"autoDeletionTimeAfterCompletionSeconds":{"$ref":"#/components/schemas/IntegerRules"},"terminationGracePeriodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"backoffLimit":{"$ref":"#/components/schemas/IntegerRules"},"restartPolicy":{"$ref":"#/components/schemas/RestartPolicyRule"}},"nullable":true,"type":"object"},"RestartPolicyRule":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/RestartPolicyOptions"}],"nullable":true,"type":"object"},"RestartPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for restartPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/RestartPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ConnectivityRules":{"properties":{"ports":{"$ref":"#/components/schemas/PortsRules"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsRules"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsRules"}},"nullable":true,"type":"object"},"PortsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PortRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PortRules":{"description":"Rules for port attributes","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"serviceType":{"$ref":"#/components/schemas/PortServiceTypeRules"},"customExternalPort":{"$ref":"#/components/schemas/BooleanRules"},"external":{"$ref":"#/components/schemas/IntegerRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PortServiceTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PortServiceTypeOptions"}],"nullable":true,"type":"object"},"PortServiceTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PortServiceType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ExposedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExposedUrlRules":{"description":"Rules for the attributed of exposedUrls","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"customUrl":{"$ref":"#/components/schemas/BooleanRules"},"url":{"$ref":"#/components/schemas/StringRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"RelatedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"RelatedUrlRules":{"description":"Rules for the attributes of relatedUrls","properties":{"url":{"$ref":"#/components/schemas/StringRules"},"type":{"$ref":"#/components/schemas/StringRules"},"name":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecurityRules":{"properties":{"security":{"$ref":"#/components/schemas/SecurityFlatFieldsRules"}},"nullable":true,"type":"object"},"SecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityFlatFieldsRules"},{"$ref":"#/components/schemas/NonInferenceSecurityFlatFieldsRules"}],"nullable":true,"type":"object"},"CommonSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridableRules"},{"$ref":"#/components/schemas/CommonSecurityOverridableRules"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridableRules":{"properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSourceRules"},"capabilities":{"$ref":"#/components/schemas/ArrayRules"},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileTypeRules"},"runAsNonRoot":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyRootFilesystem":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"UidGidSourceRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/UidGidSourceOptions"}],"nullable":true,"type":"object"},"UidGidSourceOptions":{"properties":{"options":{"description":"Limit the permitted values for uidGidSource to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/UidGidSource"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"SeccompProfileTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/SeccompProfileTypeOptions"}],"nullable":true,"type":"object"},"SeccompProfileTypeOptions":{"properties":{"options":{"description":"Limit the permitted values for secompProfileType to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/SeccompProfileType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"CommonSecurityOverridableRules":{"description":"Security related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"runAsUid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"runAsGid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"supplementalGroups":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"IntegerRulesOptional":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"NonInferenceSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/NonInferenceSecurityNonOverridableRules"}],"nullable":true,"type":"object"},"NonInferenceSecurityNonOverridableRules":{"properties":{"allowPrivilegeEscalation":{"$ref":"#/components/schemas/BooleanRules"},"hostIpc":{"$ref":"#/components/schemas/BooleanRules"},"hostNetwork":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ComputeRules":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsRules"}},"nullable":true,"type":"object"},"ComputeFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFieldsRules"},{"$ref":"#/components/schemas/ComputeItemizedFieldsRules"}],"nullable":true,"type":"object"},"ComputeFlatFieldsRules":{"properties":{"cpuCoreRequest":{"$ref":"#/components/schemas/NumberRules"},"cpuCoreLimit":{"$ref":"#/components/schemas/NumberRules"},"cpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"cpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"},"largeShmRequest":{"$ref":"#/components/schemas/BooleanRules"},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestRules"},"migProfile":{"$ref":"#/components/schemas/MigProfileRules","deprecated":true},"gpuDevicesRequest":{"$ref":"#/components/schemas/IntegerRules"},"gpuPortionRequest":{"$ref":"#/components/schemas/NumberRules"},"gpuPortionLimit":{"$ref":"#/components/schemas/NumberRules"},"gpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"gpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"}},"nullable":true,"type":"object"},"NumberRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"number","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"number","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=3, step=0.25 implies that the values the field can hold are 2, 2.25, 2.5 and 3.","type":"number","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"QuantityRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"max":{"description":"The maximum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"GpuRequestRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/GpuRequestOptions"}],"nullable":true,"type":"object"},"GpuRequestOptions":{"properties":{"options":{"description":"Limit the permitted values for gpuRequest to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/GpuRequestType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"MigProfileRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/MigProfileOptions"}],"nullable":true,"type":"object"},"MigProfileOptions":{"properties":{"options":{"description":"Limit the permitted values for migProfile to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/MigProfile"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object","deprecated":true},"ComputeItemizedFieldsRules":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesRules"}},"nullable":true,"type":"object"},"ExtendedResourcesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResourceRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExtendedResourceRules":{"description":"Rules for the attributes of extendedResources","properties":{"quantity":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StorageRules":{"properties":{"storage":{"$ref":"#/components/schemas/StorageFieldsRules"}},"nullable":true,"type":"object"},"StorageFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonStorageFieldsRules"},{"$ref":"#/components/schemas/NonInferenceStorageFieldsRules"}],"nullable":true,"type":"object"},"CommonStorageFieldsRules":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesRules"},"pvc":{"$ref":"#/components/schemas/PvcsRules"},"hostPath":{"$ref":"#/components/schemas/HostPathsRules"},"nfs":{"$ref":"#/components/schemas/NfssRules"},"git":{"$ref":"#/components/schemas/GitsRules"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsRules"},"secretVolume":{"$ref":"#/components/schemas/SecretsRules"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsRules"}},"nullable":true,"type":"object"},"DataVolumesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"DataVolumeRules":{"properties":{"id":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PvcsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PvcRules":{"properties":{"claimName":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"claimInfo":{"$ref":"#/components/schemas/ClaimInfoRules"}},"nullable":true,"type":"object"},"ClaimInfoRules":{"properties":{"size":{"$ref":"#/components/schemas/StringRules"},"storageClass":{"$ref":"#/components/schemas/StringRules"},"accessModes":{"$ref":"#/components/schemas/PvcAccessModesRules"}},"nullable":true,"type":"object"},"PvcAccessModesRules":{"description":"Rules for access mode(s) for a newly created PVC.","properties":{"readWriteOnce":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyMany":{"$ref":"#/components/schemas/BooleanRules"},"readWriteMany":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"HostPathsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"HostPathRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagationRules"}},"nullable":true,"type":"object"},"HostPathMountPropagationRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/HostPathMountPropagationOptions"}],"nullable":true,"type":"object"},"HostPathMountPropagationOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/HostPathMountPropagation"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}}},"NfssRules":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"NfsRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"server":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"GitsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/GitRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"GitRules":{"properties":{"repository":{"$ref":"#/components/schemas/StringRules"},"branch":{"$ref":"#/components/schemas/StringRules"},"revision":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ConfigMapsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ConfigMapRules":{"properties":{"configMap":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"subPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"SecretRules":{"properties":{"secret":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"EmptyDirsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"EmptyDirRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"medium":{"$ref":"#/components/schemas/StringRules"},"sizeLimit":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceStorageFieldsRules":{"properties":{"s3":{"$ref":"#/components/schemas/S3sRules"}},"nullable":true,"type":"object"},"S3sRules":{"properties":{"attributes":{"$ref":"#/components/schemas/S3Rules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"S3Rules":{"properties":{"bucket":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"url":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NonInferenceFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerNonInferenceNonOverridableRules"}],"nullable":true,"type":"object"},"ContainerNonInferenceNonOverridableRules":{"properties":{"tty":{"$ref":"#/components/schemas/BooleanRules"},"stdin":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"DistributedFieldsRules":{"properties":{"numWorkers":{"$ref":"#/components/schemas/IntegerRules"},"distributedFramework":{"$ref":"#/components/schemas/DistributedFrameworkRules"},"slotsPerWorker":{"$ref":"#/components/schemas/IntegerRules"},"sshAuthMountPath":{"$ref":"#/components/schemas/StringRules"},"mpiLauncherCreationPolicy":{"$ref":"#/components/schemas/DistributedMpiLauncherCreationPolicyRules"},"minReplicas":{"$ref":"#/components/schemas/IntegerRules"},"maxReplicas":{"$ref":"#/components/schemas/IntegerRules"},"cleanPodPolicy":{"$ref":"#/components/schemas/DistributedCleanPodPolicyRules"}},"nullable":true,"type":"object"},"DistributedFrameworkRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/DistributedFrameworkOptions"}],"nullable":true,"type":"object"},"DistributedFrameworkOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/DistributedFramework"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"DistributedMpiLauncherCreationPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/DistributedMpiLauncherCreationPolicyOptions"}],"nullable":true,"type":"object"},"DistributedMpiLauncherCreationPolicyOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/DistributedMpiLauncherCreationPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"DistributedCleanPodPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/DistributedCleanPodPolicyOptions"}],"nullable":true,"type":"object"},"DistributedCleanPodPolicyOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/DistributedCleanPodPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"DistributedImposedAssets":{"properties":{"worker":{"$ref":"#/components/schemas/ImposedAssets"},"master":{"$ref":"#/components/schemas/ImposedAssets"}},"nullable":true,"type":"object"},"ImposedAssets":{"description":"a list of datasource assets to import into the policy. these datasources will be included in any workload that will be created in the scope of the policy.","type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"FieldsToReset":{"description":"set of fields in jsonpath format that is requested to clear their policy (default and rules)","type":"array","items":{"type":"string"}},"DistributedPolicyV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyMeta"},"policy":{"$ref":"#/components/schemas/DistributedPolicyDefaultsAndRulesV2"},"effective":{"$ref":"#/components/schemas/DistributedPolicyDefaultsAndRulesV2"},"effectiveUpdatedAt":{"$ref":"#/components/schemas/Timestamp"}},"nullable":true,"type":"object"},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"Timestamp":{"description":"The time at which an event occurred. e.g. the time an effective policy has been updated","type":"string","minLength":1,"format":"date-time"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy/distributed":{"patch":{"summary":"Update a distributed policy.","description":"Use to apply changes to distributed policy for a given organizational unit.","operationId":"update_distributed_policy_v2","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/ValidateOnly"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributedPolicyChangeRequestV2"}}}},"responses":{"200":{"description":"Policy applied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributedPolicyV2"}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Get an inference policy.

> Retrieve the details of an inference policy for a given organizational unit.

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"PolicyScope":{"name":"scope","in":"query","required":true,"description":"The scope that the policy relates to.","schema":{"type":"string","enum":["tenant","cluster","department","project"]}},"FilterByDepartment":{"name":"departmentId","in":"query","description":"Filter using the department id.","required":false,"schema":{"type":"string"}},"FilterByProject":{"name":"projectId","in":"query","description":"project id to filter by","required":false,"schema":{"type":"string"}},"FilterByCluster":{"name":"clusterId","in":"query","description":"Filter using the Universally Unique Identifier (UUID) of the cluster.","required":false,"schema":{"type":"string","format":"uuid"}}},"schemas":{"InferencePolicyV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyMeta"},"policy":{"$ref":"#/components/schemas/InferencePolicyDefaultsAndRulesV2"},"effective":{"$ref":"#/components/schemas/InferencePolicyDefaultsAndRulesV2"},"effectiveUpdatedAt":{"$ref":"#/components/schemas/Timestamp"}},"nullable":true,"type":"object"},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"InferencePolicyDefaultsAndRulesV2":{"properties":{"defaults":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFields"},{"$ref":"#/components/schemas/NodeRelatedFlatFields"},{"$ref":"#/components/schemas/CommonItemizedDefaults"},{"$ref":"#/components/schemas/ConnectivityDefaults"},{"$ref":"#/components/schemas/ComputeDefaults"},{"$ref":"#/components/schemas/CommonStorageDefaults"},{"$ref":"#/components/schemas/CommonSecurity"},{"$ref":"#/components/schemas/InferenceFields"}],"nullable":true,"type":"object"},"rules":{"allOf":[{"$ref":"#/components/schemas/InferencePolicyRulesV2"}],"nullable":true,"type":"object"},"imposedAssets":{"$ref":"#/components/schemas/ImposedAssets"},"status":{"$ref":"#/components/schemas/PolicyValidationStatus"}},"nullable":true,"type":"object"},"CommonFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridable"},{"$ref":"#/components/schemas/ContainerNonOverridable"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPod"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPG"}],"nullable":true,"type":"object"},"ContainerOverridable":{"description":"Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"command":{"description":"A command to the server as the entry point of the container running the workload.","type":"string","minLength":1,"nullable":true},"args":{"description":"Arguments to the command that the container running the workload executes.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ContainerNonOverridable":{"description":"Container non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"image":{"description":"Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a workload.","type":"string","minLength":1,"nullable":true},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicy"},"workingDir":{"description":"Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.","type":"string","minLength":1,"nullable":true},"createHomeDir":{"description":"When set to `true`, creates a home directory for the container.","type":"boolean","nullable":true},"probes":{"$ref":"#/components/schemas/Probes"}},"nullable":true,"type":"object"},"ImagePullPolicy":{"description":"Image pull policy. Defaults to `Always` if `:latest` tag is specified, otherwise it is `IfNotPresent`.","type":"string","minLength":1,"enum":["Always","Never","IfNotPresent"],"nullable":true},"Probes":{"description":"Probes are used to determine if the container is healthy and ready to accept traffic.","type":"object","properties":{"readiness":{"$ref":"#/components/schemas/Probe"}},"nullable":true},"Probe":{"type":"object","properties":{"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness or readiness probes are initiated.","type":"integer","format":"int32","minimum":0,"nullable":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe.","type":"integer","format":"int32","minimum":1,"nullable":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out.","type":"integer","format":"int32","minimum":1,"nullable":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed.","type":"integer","format":"int32","minimum":1,"nullable":true},"failureThreshold":{"description":"When a probe fails, the number of times to try before giving up.","type":"integer","format":"int32","minimum":1,"nullable":true},"handler":{"$ref":"#/components/schemas/ProbeHandler"}},"nullable":true},"ProbeHandler":{"description":"The action taken to determine the health of the container. (mandatory)","type":"object","properties":{"httpGet":{"description":"An action based on HTTP Get requests.","type":"object","properties":{"path":{"description":"Path to access on the HTTP server, defaults to /.","type":"string","pattern":"^(\\x2F[a-zA-Z0-9\\-_.\\x2F]*)?$","nullable":true},"port":{"description":"Number of the port to access on the container.","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"host":{"description":"Host name to connect to, defaults to the pod IP.","type":"string","format":"hostname","nullable":true},"scheme":{"$ref":"#/components/schemas/ProbeHandlerScheme"}}}},"nullable":true},"ProbeHandlerScheme":{"description":"Scheme to use for connecting to the host, defaults to HTTP.","type":"string","enum":["HTTP","HTTPS"],"nullable":true},"ResourcesFlatFieldsPerPod":{"description":"Resource parameters.","properties":{"nodeType":{"description":"Nodes (machines), or a group of nodes on which the workload will run. To use this feature, your Administrator will need to label nodes. For more information, see [Group Nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/researcher-setup/limit-to-node-group). When using this flag with with Project-based affinity, it refines the list of allowable node groups set in the Project. For more information, see [Projects](https://docshub.run.ai/guides/platform-management/aiinitiatives/organization/projects).","type":"string","minLength":1,"nullable":true},"nodeAffinityRequired":{"$ref":"#/components/schemas/NodeAffinityRequired"},"podAffinity":{"$ref":"#/components/schemas/PodAffinity"}},"nullable":true,"type":"object"},"NodeAffinityRequired":{"type":"object","description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","properties":{"nodeSelectorTerms":{"description":"A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/components/schemas/NodeSelectorTerm"}}},"nullable":true},"NodeSelectorTerm":{"type":"object","description":"A null or empty node selector term matches no objects. The requirements of them are ANDed.","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"$ref":"#/components/schemas/MatchExpression"}}},"nullable":true},"MatchExpression":{"type":"object","description":"A selector that contains values, a key, and an operator that relates the key and values.","properties":{"key":{"description":"The label key that the selector applies to (mandatory).","type":"string"},"operator":{"$ref":"#/components/schemas/MatchExpressionOperator"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.","type":"array","items":{"type":"string"}}},"required":["key","operator"],"nullable":true},"MatchExpressionOperator":{"description":"Represents a key's relationship to a set of values (mandatory).","type":"string","enum":["In","NotIn","Exists","DoesNotExist","Gt","Lt"]},"PodAffinity":{"description":"Pod affinity scheduling rules (e.g. co-locate this workload in the same node, zone, etc. as some other workloads).","type":"object","properties":{"type":{"$ref":"#/components/schemas/PodAffinityType"},"key":{"description":"The label key to use. (mandatory)","type":"string","nullable":true}},"nullable":true},"PodAffinityType":{"description":"The affinity type, required or preferred. (mandatory)","type":"string","enum":["Required","Preferred"],"nullable":true},"ResourcesFlatFieldsPerPG":{"description":"Resource parameters.","properties":{"category":{"$ref":"#/components/schemas/Category"},"priorityClass":{"$ref":"#/components/schemas/PriorityClass"}},"nullable":true,"type":"object"},"Category":{"description":"Specify the workload category assigned to the workload. Categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.","type":"string","nullable":true},"PriorityClass":{"description":"Specifies the priority class for the workload.  Valid values are: very-low, low, medium-low, medium, medium-high, high, very-high.  You can use this parameter to adjust the workload's scheduling behavior.  Each workload type has a default priority.  To view the default priority for each workload type, use the GET /workload-types endpoint.","type":"string","nullable":true},"NodeRelatedFlatFields":{"description":"Node related parameters.","properties":{"nodePools":{"description":"A prioritized list of node pools for the scheduler to run the workload on. The scheduler will always try to use the first node pool before moving to the next one if the first is not available.","type":"array","items":{"type":"string"},"nullable":true}},"nullable":true,"type":"object"},"CommonItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldDefaults"},{"$ref":"#/components/schemas/AdvancedItemizedDefaults"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldDefaults":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/EnvironmentVariablesDefaults"}},"nullable":true,"type":"object"},"EnvironmentVariablesDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/EnvironmentVariables"}},"nullable":true,"type":"object"},"EnvironmentVariables":{"description":"Set of environment variables to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"nullable":true},"EnvironmentVariable":{"description":"Details of an environment variable which is populated into the container.","properties":{"name":{"description":"The name of the environment variable. (mandatory)","type":"string","minLength":1,"nullable":true},"value":{"description":"The value of the environment variable. (mutually exclusive with secret, credential, configMap and podFieldRef)","type":"string","nullable":true},"secret":{"$ref":"#/components/schemas/EnvironmentVariableSecret"},"configMap":{"$ref":"#/components/schemas/EnvironmentVariableConfigMap"},"podFieldRef":{"$ref":"#/components/schemas/EnvironmentVariablePodFieldReference"},"exclude":{"description":"Use 'true' in case the environment variable is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true},"description":{"description":"Description of the environment variable.","type":"string","nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableSecret":{"description":"Details of the secret and key use to populate the environment variable","properties":{"name":{"description":"The name of the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableConfigMap":{"description":"Details of the configMap and key use to populate the environment variable","properties":{"name":{"description":"The name of the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariablePodFieldReference":{"description":"Details of the field-reference and key use to populate the environment variable","properties":{"path":{"description":"The field path resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"AdvancedItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldDefaults"},{"$ref":"#/components/schemas/LabelsFieldDefaults"},{"$ref":"#/components/schemas/ImagePullSecretsFieldDefaults"},{"$ref":"#/components/schemas/TolerationsFieldDefaults"}],"type":"object","nullable":true},"AnnotationsFieldDefaults":{"properties":{"annotations":{"$ref":"#/components/schemas/AnnotationsDefaults"}},"nullable":true,"type":"object"},"AnnotationsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Annotations"}},"nullable":true,"type":"object"},"Annotations":{"description":"Set of annotations to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Annotation"},"nullable":true},"Annotation":{"description":"Annotation details to be populated into the container.","properties":{"name":{"description":"The name of the annotation (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the annotation.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the annotation is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"LabelsFieldDefaults":{"properties":{"labels":{"$ref":"#/components/schemas/LabelsDefaults"}},"nullable":true,"type":"object"},"LabelsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Labels"}},"nullable":true,"type":"object"},"Labels":{"description":"Set of labels to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Label"},"nullable":true},"Label":{"description":"Label details to be populated into the container.","properties":{"name":{"description":"The name of the label (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the label.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ImagePullSecretsFieldDefaults":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsDefaults"}},"nullable":true,"type":"object"},"ImagePullSecretsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/ImagePullSecrets"}},"nullable":true,"type":"object"},"ImagePullSecrets":{"description":"A list of references to Kubernetes secrets in the same namespace used for pulling container images.","type":"array","items":{"$ref":"#/components/schemas/ImagePullSecret"},"nullable":true},"ImagePullSecret":{"description":"A reference to a secret in the same namespace used to pull container images.","properties":{"name":{"type":"string","description":"The name of the Kubernetes secret containing the image pull credentials."},"userCredential":{"type":"boolean","description":"Indicates whether the secret is a user credential. Set to true if the secret was created by the user and is only accessible by them.","nullable":true},"exclude":{"description":"Use 'true' in case the secret is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"TolerationsFieldDefaults":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsDefaults"}},"nullable":true,"type":"object"},"TolerationsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Toleration"},"instances":{"$ref":"#/components/schemas/Tolerations"}},"nullable":true,"type":"object"},"Toleration":{"description":"Toleration details.","properties":{"name":{"description":"The name of the toleration.","type":"string","minLength":1,"nullable":true},"operator":{"$ref":"#/components/schemas/TolerationOperator"},"key":{"description":"The taint key that the toleration applies to. (mandatory)","type":"string","nullable":true},"value":{"description":"The taint value the toleration matches to. Mandatory if operator is Exists, forbidden otherwise.","type":"string","nullable":true},"effect":{"$ref":"#/components/schemas/TolerationEffect"},"seconds":{"description":"The period of time the toleration tolerates the taint. Valid only if effect is NoExecute. taint.","type":"integer","minimum":1,"nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TolerationOperator":{"description":"A key's relationship to the value. Equal uses key and value. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. (mandatory)","type":"string","enum":["Equal","Exists"],"nullable":true},"TolerationEffect":{"description":"The taint effect to match. (mandatory)","type":"string","enum":["NoSchedule","NoExecute","PreferNoSchedule","Any"],"nullable":true},"Tolerations":{"description":"Set of tolerations to apply to the workload.","type":"array","items":{"$ref":"#/components/schemas/Toleration"},"nullable":true},"ConnectivityDefaults":{"properties":{"ports":{"$ref":"#/components/schemas/PortsDefaults"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsDefaults"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsDefaults"}},"nullable":true,"type":"object"},"PortsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Port"},"instances":{"$ref":"#/components/schemas/Ports"}},"nullable":true,"type":"object"},"Port":{"description":"A port for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"serviceType":{"$ref":"#/components/schemas/PortServiceType"},"external":{"description":"The external port which allows a connection to the container port. If not specified, the port will be auto-generated by the system..","type":"integer","format":"int32","nullable":true},"toolType":{"description":"The tool type that runs on this port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this port.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PortServiceType":{"description":"The service type of the port (mandatory).","type":"string","enum":["LoadBalancer","NodePort","ClusterIP"],"nullable":true},"Ports":{"description":"Set of container ports that the workload exposes.","type":"array","items":{"$ref":"#/components/schemas/Port"},"nullable":true},"ExposedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrl"},"instances":{"$ref":"#/components/schemas/ExposedUrls"}},"nullable":true,"type":"object"},"ExposedUrl":{"description":"A URL for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","nullable":true},"url":{"description":"The URL for connecting to the container port. If not specified, the URL will be auto-generated by the system..","type":"string","nullable":true},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"toolType":{"description":"The tool type that runs on this container port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this url.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the instance is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExposedUrls":{"description":"Set of container ports that the workload exposes via URLs.","type":"array","items":{"$ref":"#/components/schemas/ExposedUrl"},"nullable":true},"RelatedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrl"},"instances":{"$ref":"#/components/schemas/RelatedUrls"}},"nullable":true,"type":"object"},"RelatedUrl":{"description":"A URL that is related to the workload. For example, a URL to an external server providing statistics or logging about the workload.","properties":{"url":{"description":"The URL for connecting an external service related to the workload. (mandatory)","type":"string","nullable":true},"type":{"description":"The type of service that the url provides. For example, wandb (Weights & Biases). (mandatory)","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"RelatedUrls":{"description":"Set of URLs that are related to the workload.","type":"array","items":{"$ref":"#/components/schemas/RelatedUrl"},"nullable":true},"ComputeDefaults":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsDefaults"}},"nullable":true,"type":"object"},"ComputeFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFields"},{"$ref":"#/components/schemas/ComputeItemizedFieldsDefaults"}],"nullable":true,"type":"object"},"ComputeFlatFields":{"properties":{"gpuDevicesRequest":{"description":"Requested number of GPU devices. Currently if more than one device is requested, it is not possible to provide values for gpuMemory, gpuPortion or migProfile [deprecated].","type":"integer","format":"int32","nullable":true,"minimum":0},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestType"},"gpuPortionRequest":{"description":"Required if and only if gpuRequestType is portion. States the portion of the GPU to allocate for the created workload, per GPU device, between 0 and 1. The default is no allocated GPUs.","type":"number","format":"double","nullable":true,"minimum":0},"gpuPortionLimit":{"description":"Limitations on the portion consumed by the workload, per GPU device. The system guarantees The gpuPotionLimit must be no less than the gpuPortionRequest.","type":"number","format":"double","nullable":true,"minimum":0},"gpuMemoryRequest":{"description":"Required if and only if gpuRequestType is memory. States the GPU memory to allocate for the created workload, per GPU device. Note that the workload will not be scheduled unless the system can guarantee this amount of GPU memory to the workload.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"gpuMemoryLimit":{"description":"Limitation on the memory consumed by the workload, per GPU device. The system guarantees The gpuMemoryLimit must be no less than gpuMemoryRequest.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"migProfile":{"$ref":"#/components/schemas/MigProfile","depracted":true},"cpuCoreRequest":{"description":"CPU units to allocate for the created workload (0.5, 1, .etc). The workload will receive at least this amount of CPU. Note that the workload will not be scheduled unless the system can guarantee this amount of CPUs to the workload.","format":"double","type":"number","nullable":true,"minimum":0},"cpuCoreLimit":{"description":"Limitations on the number of CPUs consumed by the workload (0.5, 1, .etc). The system guarantees that this workload will not be able to consume more than this amount of CPUs.","format":"double","type":"number","nullable":true,"minimum":0},"cpuMemoryRequest":{"description":"The amount of CPU memory to allocate for this workload (1G, 20M, .etc). The workload will receive at least this amount of memory. Note that the workload will not be scheduled unless the system can guarantee this amount of memory to the workload","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"cpuMemoryLimit":{"description":"Limitations on the CPU memory to allocate for this workload (1G, 20M, .etc). The system guarantees that this workload will not be able to consume more than this amount of memory. The workload will receive an error when trying to allocate more memory than this limit.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"largeShmRequest":{"description":"A large /dev/shm device to mount into a container running the created workload. An shm is a shared file system mounted on RAM.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"GpuRequestType":{"description":"Sets the unit type for GPU resources requests. Stated in terms of portion, memory or  mig profile [deprecated]. Sets the unit type for other GPU request fields. If `gpuDevicesRequest > 1`, only `portion` is supported. If `gpuDeviceRequest = 1`, the request type can be stated as `portion`, `memory` or `migProfile` [deprecated].","type":"string","minLength":1,"enum":["portion","memory","migProfile"],"nullable":true},"MigProfile":{"description":"Required only if `gpuRequestType` is `migProfile`. This states the memory profile to be used for the workload running NVIDIA Multi-Instance GPU (MIG) technology.","type":"string","deprecated":true,"minLength":1,"enum":["1g.5gb","1g.10gb","2g.10gb","2g.20gb","3g.20gb","3g.40gb","4g.20gb","4g.40gb","7g.40gb","7g.80gb"],"nullable":true},"ComputeItemizedFieldsDefaults":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesDefaults"}},"nullable":true,"type":"object"},"ExtendedResourcesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResource"},"instances":{"$ref":"#/components/schemas/ExtendedResources"}},"nullable":true,"type":"object"},"ExtendedResource":{"description":"Quantity of an extended resource.","properties":{"resource":{"description":"The name of the extended resource (mandatory)","type":"string","minLength":1,"nullable":true},"quantity":{"description":"The requested quantity for the resource.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the extended resource is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExtendedResources":{"description":"Extended resources and their quantity.","type":"array","items":{"$ref":"#/components/schemas/ExtendedResource"},"nullable":true},"CommonStorageDefaults":{"properties":{"storage":{"$ref":"#/components/schemas/CommonStorageFieldsDefaults"}},"nullable":true,"type":"object"},"CommonStorageFieldsDefaults":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesDefaults"},"pvc":{"$ref":"#/components/schemas/PvcsDefaults"},"hostPath":{"$ref":"#/components/schemas/HostPathsDefaults"},"nfs":{"$ref":"#/components/schemas/NfssDefaults"},"git":{"$ref":"#/components/schemas/GitsDefaults"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsDefaults"},"secretVolume":{"$ref":"#/components/schemas/SecretsDefaults"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsDefaults"}},"nullable":true,"type":"object"},"DataVolumesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeInstance"},"instances":{"$ref":"#/components/schemas/DataVolumeItems"}},"nullable":true,"type":"object"},"DataVolumeInstance":{"allOf":[{"$ref":"#/components/schemas/DataVolume"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"DataVolume":{"properties":{"id":{"description":"The unique identifier of the data volume. (mandatory)","type":"string","format":"uuid","nullable":true},"mountPath":{"description":"The path where the data volume will be mounted. (mandatory)","type":"string","nullable":true}},"nullable":true,"type":"object"},"ExcludeField":{"properties":{"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"type":"object","nullable":true},"DataVolumeItems":{"description":"Set of data volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/DataVolumeInstance"},"nullable":true},"PvcsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcInstance"},"instances":{"$ref":"#/components/schemas/PvcItems"}},"nullable":true,"type":"object"},"PvcInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Pvc"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"StorageInstanceName":{"properties":{"name":{"description":"unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"Pvc":{"allOf":[{"$ref":"#/components/schemas/PvcFieldsUpdatable"},{"$ref":"#/components/schemas/PvcFieldsNonUpdatable"}]},"PvcFieldsUpdatable":{"properties":{"path":{"description":"Local path within the workload to which the PVC bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"PvcFieldsNonUpdatable":{"properties":{"existingPvc":{"description":"Verify existing PVC. PVC is assumed to exist when set to `true`. If set to `false`, the PVC will be created, if it does not exist.","type":"boolean","default":false,"nullable":true},"claimName":{"description":"Name for the PVC. Allow referencing it across workloads. If not provided, a name based on the workload name and scope will be auto-generated.","type":"string","minLength":1,"maxLength":63,"nullable":true},"readOnly":{"description":"Permit only read access to PVC.","type":"boolean","default":false,"nullable":true},"ephemeral":{"description":"Use `true` to set PVC to ephemeral. If set to `true`, the PVC will be deleted when the workload is stopped. Not supported for inference workloads.","type":"boolean","default":false,"nullable":true},"claimInfo":{"$ref":"#/components/schemas/ClaimInfo"},"dataSharing":{"description":"use `true` to share the PVC data to all projects under the selected scope.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"ClaimInfo":{"description":"Claim information for the newly created PVC. The information should not be provided when attempting to use existing PVC.","properties":{"size":{"$ref":"#/components/schemas/PvcClaimSize"},"storageClass":{"description":"Storage class name to associate with the PVC. This parameter may be omitted if there is a single storage class in the system, or you are using the default storage class. For more information, see [Storage class](https://kubernetes.io/docs/concepts/storage/storage-classes).","type":"string","minLength":1,"nullable":true},"accessModes":{"$ref":"#/components/schemas/PvcAccessModes"},"volumeMode":{"$ref":"#/components/schemas/PvcVolumeMode"},"addedAttrValues":{"$ref":"#/components/schemas/PvcAddedAttrValues"}},"nullable":true,"type":"object"},"PvcClaimSize":{"description":"Requested size for the PVC. Mandatory when existingPvc is false. Recommended sizes: TB/GB/MB/TIB/GIB/MIB","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"PvcAccessModes":{"description":"Requested access mode(s) for the newly created PVC.","properties":{"readWriteOnce":{"description":"Requesting claim that can be mounted in read/write mode to exactly one host. This is the default access mode.","type":"boolean","default":true,"nullable":true},"readOnlyMany":{"description":"Requesting claim that can be mounted in read-only mode to many hosts.","type":"boolean","default":false,"nullable":true},"readWriteMany":{"description":"Requesting claim that can be mounted in read/write mode to many hosts.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PvcVolumeMode":{"description":"The volume mode required by the claim. Choose Filesystem (default) or Block.","type":"string","enum":["Filesystem","Block"],"nullable":true},"PvcAddedAttrValues":{"description":"an optional array of key-values pairs that are written as annotations on the created PVC. the allowed attributes are determined according to the storage class configuration (see k8s-objects-tracker for further info).","type":"array","items":{"$ref":"#/components/schemas/PvcAddedAttrValue"}},"PvcAddedAttrValue":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":63,"pattern":"^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$"},"value":{"type":"string"}}},"PvcItems":{"description":"Set of pvc persistent volume claims to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/PvcInstance"},"nullable":true},"HostPathsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathInstance"},"instances":{"$ref":"#/components/schemas/HostPathItems"}},"nullable":true,"type":"object"},"HostPathInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/HostPath"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"HostPath":{"properties":{"path":{"description":"Local path within the controller to which the host volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","default":true,"nullable":true},"mountPath":{"description":"The path that the host volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagation"}},"nullable":true,"type":"object"},"HostPathMountPropagation":{"description":"Share this volumes mount with other containers. If set to HostToContainer, this volume mount will receive all subsequent mounts that are mounted to this volume or any of its subdirectories. In case of multiple hostPath entries, this field should have the same value for all of them.","type":"string","enum":["None","HostToContainer"],"nullable":true},"HostPathItems":{"description":"Set of host paths to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/HostPathInstance"},"nullable":true},"NfssDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsInstance"},"instances":{"$ref":"#/components/schemas/NfsItems"}},"nullable":true,"type":"object"},"NfsInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Nfs"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Nfs":{"properties":{"path":{"description":"Path that is exported by the NFS server (mandatory). For more information, see [NFS](https://kubernetes.io/docs/concepts/storage/volumes#nfs).","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the NFS export to be mounted with read-only permissions.","type":"boolean","default":true,"nullable":true},"server":{"description":"The hostname or IP address of the NFS server. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"The path that the NFS volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"NfsItems":{"description":"Set of nfs volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/NfsInstance"},"nullable":true},"GitsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/GitInstance"},"instances":{"$ref":"#/components/schemas/GitItems"}},"nullable":true,"type":"object"},"GitInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/GitCommon"},{"$ref":"#/components/schemas/GitPassword"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"GitCommon":{"properties":{"repository":{"description":"URL to a remote Git repository. The content of this repository will be mapped to the container running the workload. (mandatory)","type":"string","minLength":1,"nullable":true},"branch":{"description":"Specific branch to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"revision":{"description":"Specific revision to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the Git repository will be mapped (mandatory).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitPassword":{"properties":{"passwordSecret":{"description":"Secret containing the credentials of the repository (needed for non public repository which requires authentication).","type":"string","minLength":1,"nullable":true},"secretKeyOfUser":{"description":"The key to use for loading the user name from the secret. The default is `User`.","type":"string","minLength":1,"nullable":true},"secretKeyOfPassword":{"description":"The key to use for loading the password from the secret. The default is `Password`.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitItems":{"description":"Set of git repositories to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/GitInstance"},"nullable":true},"ConfigMapsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapInstance"},"instances":{"$ref":"#/components/schemas/ConfigMapField"}},"nullable":true,"type":"object"},"ConfigMapInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/ConfigMap"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"ConfigMap":{"properties":{"configMap":{"description":"The name of the ConfigMap resource. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"Local path within the workload to which the ConfigMap will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ConfigMapField":{"description":"Set of config map volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/ConfigMapInstance"},"nullable":true},"SecretsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretInstance2"},"instances":{"$ref":"#/components/schemas/SecretItems1"}},"nullable":true,"type":"object"},"SecretInstance2":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Secret5"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Secret5":{"allOf":[{"$ref":"#/components/schemas/SecretFieldsUpdatable"},{"$ref":"#/components/schemas/SecretFieldsNonUpdatable"}]},"SecretFieldsUpdatable":{"properties":{"mountPath":{"description":"Local path within the workload to which the Secret will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretFieldsNonUpdatable":{"properties":{"secret":{"description":"The name of the Secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretItems1":{"description":"Set of secret volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/SecretInstance2"},"nullable":true},"EmptyDirsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirInstance"},"instances":{"$ref":"#/components/schemas/EmptyDirItems"}},"nullable":true,"type":"object"},"EmptyDirInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/EmptyDir"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"EmptyDir":{"properties":{"path":{"description":"Local path within the workload to which the EmptyDir volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"medium":{"description":"The type of storage medium for the volume. Use \"Memory\" for memory-backed storage, or leave empty for disk-backed storage.","type":"string","minLength":1,"nullable":true},"sizeLimit":{"description":"The total amount of local storage or memory required for the emptyDir volume. Specify using Kubernetes quantity format (e.g., 1G, 500Mi).","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true}},"nullable":true,"type":"object"},"EmptyDirItems":{"description":"A list of emptyDir volumes to mount in the workload.","type":"array","items":{"$ref":"#/components/schemas/EmptyDirInstance"},"nullable":true},"CommonSecurity":{"properties":{"security":{"$ref":"#/components/schemas/CommonSecurityFlatFields"}},"nullable":true,"type":"object"},"CommonSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridable"},{"$ref":"#/components/schemas/CommonSecurityOverridable"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridable":{"description":"Security non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSource"},"capabilities":{"description":"Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.","type":"array","items":{"$ref":"#/components/schemas/Capability"},"nullable":true},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileType"},"runAsNonRoot":{"description":"Force the container to run as a non-root user.","type":"boolean","nullable":true},"readOnlyRootFilesystem":{"description":"If true, mounts the container's root filesystem as read-only.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"UidGidSource":{"description":"Indicate the way to determine the user and group ids of the container. The options are a. `fromTheImage` - user and group ids are determined by the docker image that the container runs. this is the default option. b. `custom` - user and group ids can be specified in the environment asset and/or the workload creation request. c. `idpToken` - user and group ids are determined according to the identity provider (idp) access token. This option is intended for internal use of the environment UI form. For more information, see [User Identity](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/runai-setup/config/non-root-containers/).","type":"string","enum":["fromTheImage","fromIdpToken","custom"],"nullable":true},"Capability":{"type":"string","enum":["AUDIT_CONTROL","AUDIT_READ","AUDIT_WRITE","BLOCK_SUSPEND","CHOWN","DAC_OVERRIDE","DAC_READ_SEARCH","FOWNER","FSETID","IPC_LOCK","IPC_OWNER","KILL","LEASE","LINUX_IMMUTABLE","MAC_ADMIN","MAC_OVERRIDE","MKNOD","NET_ADMIN","NET_BIND_SERVICE","NET_BROADCAST","NET_RAW","SETGID","SETFCAP","SETPCAP","SETUID","SYS_ADMIN","SYS_BOOT","SYS_CHROOT","SYS_MODULE","SYS_NICE","SYS_PACCT","SYS_PTRACE","SYS_RAWIO","SYS_RESOURCE","SYS_TIME","SYS_TTY_CONFIG","SYSLOG","WAKE_ALARM"]},"SeccompProfileType":{"description":"Indicates which kind of seccomp profile will be applied to the container. The options are a. `RuntimeDefault` - the container runtime default profile should be used. b. `Unconfined` - no profile should be applied. c. `Localhost` is not yet supported by Run:ai.","type":"string","enum":["RuntimeDefault","Unconfined","Localhost"],"nullable":true},"CommonSecurityOverridable":{"description":"Security overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"runAsUid":{"description":"The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsUid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"runAsGid":{"description":"The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsGid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"supplementalGroups":{"description":"Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled. Using an empty string implies reverting the supplementary groups of the image.","type":"string","nullable":true}},"nullable":true,"type":"object"},"InferenceFields":{"properties":{"servingPort":{"$ref":"#/components/schemas/ServingPort"},"autoscaling":{"$ref":"#/components/schemas/AutoScaling"},"servingConfiguration":{"$ref":"#/components/schemas/ServingConfiguration"}},"nullable":true,"type":"object"},"ServingPort":{"description":"A port for accessing the inference service","allOf":[{"$ref":"#/components/schemas/ServingPortContainerAndProtocol"},{"$ref":"#/components/schemas/ServingPortAccess"}],"nullable":true,"type":"object"},"ServingPortContainerAndProtocol":{"properties":{"container":{"description":"The port that the container running the inference service exposes (mandatory).","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"protocol":{"$ref":"#/components/schemas/ServingPortProtocol"}}},"ServingPortProtocol":{"description":"The protocol used by the port, defaults to http","type":"string","enum":["http","grpc"],"nullable":true},"ServingPortAccess":{"properties":{"authorizationType":{"$ref":"#/components/schemas/ServingPortAccessAuthorizationTypeEnum"},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"clusterLocalAccessOnly":{"description":"Configure the serving port URL to be available only on the cluster-local network, and not externally. Defaults to false","type":"boolean","nullable":true}}},"ServingPortAccessAuthorizationTypeEnum":{"type":"string","enum":["public","authenticatedUsers","authorizedUsersOrGroups"],"description":"The authorization type for serving port URL access. Defaults to public, which means no authorization is required. If set to authenticatedUsers, only authenticated Run:ai users are allowed to access the URL. If set to authorizedUsersOrGroups, only users or groups specified in authorizedUsers or authorizedGroups are allowed to access the URL. Supported from cluster version 2.19.","nullable":true},"AutoScaling":{"allOf":[{"$ref":"#/components/schemas/AutoScalingCommonFields"},{"$ref":"#/components/schemas/AutoScalingMetricFields"}],"nullable":true,"type":"object"},"AutoScalingCommonFields":{"description":"Auto scaling common fields","properties":{"metricThresholdPercentage":{"description":"The percentage of metric threshold value to use for autoscaling. Defaults to 70. Applicable only with the 'throughput' and 'concurrency' metrics","type":"number","format":"float","minimum":1,"maximum":100,"nullable":true},"minReplicas":{"description":"The minimum number of replicas for autoscaling. Defaults to 1. Use 0 to allow scale-to-zero","type":"integer","format":"int32","minimum":0,"nullable":true},"maxReplicas":{"description":"The maximum number of replicas for autoscaling. Defaults to minReplicas, or to 1 if minReplicas is set to 0","type":"integer","format":"int32","minimum":1,"nullable":true},"initialReplicas":{"description":"The number of replicas to run when initializing the workload for the first time. Defaults to minReplicas, or to 1 if minReplicas is set to 0","type":"integer","format":"int32","minimum":0,"nullable":true},"activationReplicas":{"description":"The number of replicas to run when scaling-up from zero. Defaults to minReplicas, or to 1 if minReplicas is set to 0","type":"integer","format":"int32","minimum":1,"nullable":true},"concurrencyHardLimit":{"description":"The maximum number of requests allowed to flow to a single replica at any time. 0 means no limit","type":"integer","format":"int32","minimum":0,"nullable":true},"scaleToZeroRetentionSeconds":{"description":"The minimum amount of time (in seconds) that the last replica will remain active after a scale-to-zero decision. Defaults to 0. Available only if minReplicas is set to 0","type":"integer","format":"int32","minimum":0,"maximum":3600,"nullable":true},"scaleDownDelaySeconds":{"description":"The minimum amount of time (in seconds) that a replica will remain active after a scale-down decision","type":"integer","format":"int32","minimum":0,"maximum":3600,"nullable":true},"initializationTimeoutSeconds":{"description":"Use `servingConfiguration.initializationTimeoutSeconds` instead.  If this field is set, it will be ignored and the value under `servingConfiguration` will be used. The maximum amount of time (in seconds) to wait for the container to become ready.","type":"integer","format":"int32","minimum":1,"nullable":true,"deprecated":true}},"nullable":true,"type":"object"},"AutoScalingMetricFields":{"description":"Auto scaling metric fields","properties":{"metric":{"$ref":"#/components/schemas/AutoScalingMetric"},"metricThreshold":{"description":"The threshold to use with the specified metric for autoscaling. Mandatory if metric is specified","type":"integer","format":"int32","nullable":true}},"nullable":true,"type":"object"},"AutoScalingMetric":{"description":"The metric to use for autoscaling. Mandatory if minReplicas < maxReplicas, except for the special case where minReplicas is set to 0 and maxReplicas is set to 1, as in this case autoscaling decisions are made according to network activity rather than metrics. Use one of the built-in metrics of 'throughput', 'concurrency' or 'latency', or any other available custom metric. Only the 'throughput' and 'concurrency' metrics support scale-to-zero","type":"string","pattern":"^[a-zA-Z_:][a-zA-Z0-9_:]*$","nullable":true},"ServingConfiguration":{"description":"The inference workload serving configuration.","properties":{"initializationTimeoutSeconds":{"description":"The maximum time (in seconds) allowed for a workload to initialize and become ready. If the workload does not start within this time, it will be moved to failed state.","type":"integer","format":"int32","minimum":1,"nullable":true},"requestTimeoutSeconds":{"description":"The maximum time (in seconds) allowed to process an end-user request. If no response is returned within this time, the request will be ignored.Supported from Cluster version 2.22","type":"integer","format":"int32","minimum":1,"nullable":true}},"nullable":true,"type":"object"},"InferencePolicyRulesV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFieldsRules"},{"$ref":"#/components/schemas/NodeRelatedFlatFieldsRules"},{"$ref":"#/components/schemas/CommonItemizedFieldsRules"},{"$ref":"#/components/schemas/ConnectivityRules"},{"$ref":"#/components/schemas/ComputeRules"},{"$ref":"#/components/schemas/InferenceSecurityRules"},{"$ref":"#/components/schemas/CommonStorageRules"},{"$ref":"#/components/schemas/InferenceFieldsRules"}]},"CommonFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridableRules"},{"$ref":"#/components/schemas/ContainerNonOverridableRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPodRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPGRules"}],"nullable":true,"type":"object"},"ContainerOverridableRules":{"description":"Container related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"command":{"$ref":"#/components/schemas/StringRules"},"args":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StringRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/StringRulesOptions"}],"nullable":true,"type":"object"},"StringRulesCommon":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true}}},"SourceOfRule":{"description":"This field is used by the system along with effective rules, in order to specify the org unit from which this effective rule has been derived. It should be left empty when sending apply policy requests.","required":["scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"isFallback":{"description":"source of this rule is the fallback policy","type":"boolean"}},"nullable":true,"type":"object"},"StringRulesOptions":{"properties":{"options":{"description":"Set of options that the value of the field must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"},"nullable":true}}},"StringOption":{"description":"One of the values that the field can be assigned to, when options police is applied on the field.","required":["value"],"properties":{"value":{"description":"The value that the field should hold","type":"string"},"displayed":{"description":"Textual description of the value. to be used by user interface applications.","type":"string","nullable":true}}},"ContainerNonOverridableRules":{"properties":{"image":{"$ref":"#/components/schemas/StringRules"},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicyRules"},"workingDir":{"$ref":"#/components/schemas/StringRules"},"createHomeDir":{"$ref":"#/components/schemas/BooleanRules"},"probes":{"$ref":"#/components/schemas/ProbesRules"}},"nullable":true,"type":"object"},"ImagePullPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ImagePullPolicyOptions"}],"nullable":true,"type":"object"},"ImagePullPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ImagePullPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"BooleanRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ProbesRules":{"properties":{"readiness":{"$ref":"#/components/schemas/ProbeRules"}},"nullable":true,"type":"object"},"ProbeRules":{"properties":{"initialDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"periodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"timeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"successThreshold":{"$ref":"#/components/schemas/IntegerRules"},"failureThreshold":{"$ref":"#/components/schemas/IntegerRules"},"handler":{"$ref":"#/components/schemas/ProbeHandlerRules"}},"nullable":true,"type":"object"},"IntegerRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"DefaultFromRule":{"properties":{"field":{"description":"The default of this field is taken from another field, with optional factor. The specified field must belong to the same workload section (compute, security, etc). For itemized field, the value of the field will be taken from the same instance.","type":"string","nullable":true},"factor":{"description":"Multiple the value of the fromField by this factor to get the value for this field For example, if factor is 2 and defaultFrom field has value of 8, the calculated default will be determined to be 16.","type":"number","format":"double","nullable":true,"default":1}},"nullable":true,"type":"object"},"ProbeHandlerRules":{"properties":{"httpGet":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"port":{"$ref":"#/components/schemas/IntegerRules"},"host":{"$ref":"#/components/schemas/StringRules"},"scheme":{"$ref":"#/components/schemas/StringRules"}}}},"nullable":true,"type":"object"},"ResourcesFlatFieldsPerPodRules":{"description":"Resource related parameters.","properties":{"nodeType":{"$ref":"#/components/schemas/StringRules"},"nodeAffinityRequired":{"$ref":"#/components/schemas/ArbitraryRules"},"podAffinity":{"$ref":"#/components/schemas/PodAffinityRules"}},"nullable":true,"type":"object"},"ArbitraryRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this arbitrary object is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"PodAffinityRules":{"properties":{"type":{"$ref":"#/components/schemas/PodAffinityTypeRules"},"key":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PodAffinityTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PodAffinityTypeOptions"}],"nullable":true,"type":"object"},"PodAffinityTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PodAffinityType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"type":"object"},"ResourcesFlatFieldsPerPGRules":{"description":"Resource related parameters.","properties":{"category":{"$ref":"#/components/schemas/StringRules"},"priorityClass":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NodeRelatedFlatFieldsRules":{"description":"Node pools related parameters.","properties":{"nodePools":{"$ref":"#/components/schemas/ArrayRules"}},"nullable":true,"type":"object"},"ArrayRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this array is mandatory. Mandatory array must include at least one item. default to false.","type":"boolean","nullable":true},"options":{"description":"Set of options that the value of each item of the array must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"}},"canEdit":{"description":"Whether the value of the array, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"CommonItemizedFieldsRules":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldRules"},{"$ref":"#/components/schemas/AdvancedItemizedRules"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldRules":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"InstancesRules":{"properties":{"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ItemRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canAdd":{"description":"Whether it is permitted to add items. Default to true.","type":"boolean","nullable":true},"locked":{"description":"Set of keys for items that are \"locked\", i.e. cannot be removed or deleted.","type":"array","items":{"type":"string"}}},"nullable":true,"type":"object"},"AdvancedItemizedRules":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldRules"},{"$ref":"#/components/schemas/LabelsFieldRules"},{"$ref":"#/components/schemas/ImagePullSecretsFieldRules"},{"$ref":"#/components/schemas/TolerationsFieldRules"}],"type":"object","nullable":true},"AnnotationsFieldRules":{"properties":{"annotations":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"LabelsFieldRules":{"properties":{"labels":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"ImagePullSecretsFieldRules":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ImagePullSecretsRulesAttributes"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRulesAttributes":{"description":"Rules for the attributes of imagePullSecrets","properties":{"name":{"$ref":"#/components/schemas/StringRules"},"userCredentials":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationsFieldRules":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsRules"}},"nullable":true,"type":"object"},"TolerationsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/TolerationRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"TolerationRules":{"description":"Toleration details.","properties":{"operator":{"$ref":"#/components/schemas/TolerationOperatorRules"},"key":{"$ref":"#/components/schemas/StringRules"},"value":{"$ref":"#/components/schemas/StringRules"},"effect":{"$ref":"#/components/schemas/TolerationEffectRules"},"seconds":{"$ref":"#/components/schemas/IntegerRules"},"exclude":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationOperatorRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationOperatorOptions"}],"nullable":true,"type":"object"},"TolerationOperatorOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationOperator"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"TolerationEffectRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationEffectOptions"}],"nullable":true,"type":"object"},"TolerationEffectOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationEffect"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ConnectivityRules":{"properties":{"ports":{"$ref":"#/components/schemas/PortsRules"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsRules"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsRules"}},"nullable":true,"type":"object"},"PortsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PortRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PortRules":{"description":"Rules for port attributes","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"serviceType":{"$ref":"#/components/schemas/PortServiceTypeRules"},"customExternalPort":{"$ref":"#/components/schemas/BooleanRules"},"external":{"$ref":"#/components/schemas/IntegerRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PortServiceTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PortServiceTypeOptions"}],"nullable":true,"type":"object"},"PortServiceTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PortServiceType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ExposedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExposedUrlRules":{"description":"Rules for the attributed of exposedUrls","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"customUrl":{"$ref":"#/components/schemas/BooleanRules"},"url":{"$ref":"#/components/schemas/StringRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"RelatedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"RelatedUrlRules":{"description":"Rules for the attributes of relatedUrls","properties":{"url":{"$ref":"#/components/schemas/StringRules"},"type":{"$ref":"#/components/schemas/StringRules"},"name":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ComputeRules":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsRules"}},"nullable":true,"type":"object"},"ComputeFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFieldsRules"},{"$ref":"#/components/schemas/ComputeItemizedFieldsRules"}],"nullable":true,"type":"object"},"ComputeFlatFieldsRules":{"properties":{"cpuCoreRequest":{"$ref":"#/components/schemas/NumberRules"},"cpuCoreLimit":{"$ref":"#/components/schemas/NumberRules"},"cpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"cpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"},"largeShmRequest":{"$ref":"#/components/schemas/BooleanRules"},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestRules"},"migProfile":{"$ref":"#/components/schemas/MigProfileRules","deprecated":true},"gpuDevicesRequest":{"$ref":"#/components/schemas/IntegerRules"},"gpuPortionRequest":{"$ref":"#/components/schemas/NumberRules"},"gpuPortionLimit":{"$ref":"#/components/schemas/NumberRules"},"gpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"gpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"}},"nullable":true,"type":"object"},"NumberRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"number","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"number","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=3, step=0.25 implies that the values the field can hold are 2, 2.25, 2.5 and 3.","type":"number","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"QuantityRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"max":{"description":"The maximum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"GpuRequestRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/GpuRequestOptions"}],"nullable":true,"type":"object"},"GpuRequestOptions":{"properties":{"options":{"description":"Limit the permitted values for gpuRequest to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/GpuRequestType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"MigProfileRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/MigProfileOptions"}],"nullable":true,"type":"object"},"MigProfileOptions":{"properties":{"options":{"description":"Limit the permitted values for migProfile to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/MigProfile"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object","deprecated":true},"ComputeItemizedFieldsRules":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesRules"}},"nullable":true,"type":"object"},"ExtendedResourcesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResourceRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExtendedResourceRules":{"description":"Rules for the attributes of extendedResources","properties":{"quantity":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"InferenceSecurityRules":{"properties":{"security":{"$ref":"#/components/schemas/CommonSecurityFlatFieldsRules"}},"nullable":true,"type":"object"},"CommonSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridableRules"},{"$ref":"#/components/schemas/CommonSecurityOverridableRules"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridableRules":{"properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSourceRules"},"capabilities":{"$ref":"#/components/schemas/ArrayRules"},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileTypeRules"},"runAsNonRoot":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyRootFilesystem":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"UidGidSourceRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/UidGidSourceOptions"}],"nullable":true,"type":"object"},"UidGidSourceOptions":{"properties":{"options":{"description":"Limit the permitted values for uidGidSource to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/UidGidSource"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"SeccompProfileTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/SeccompProfileTypeOptions"}],"nullable":true,"type":"object"},"SeccompProfileTypeOptions":{"properties":{"options":{"description":"Limit the permitted values for secompProfileType to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/SeccompProfileType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"CommonSecurityOverridableRules":{"description":"Security related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"runAsUid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"runAsGid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"supplementalGroups":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"IntegerRulesOptional":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"CommonStorageRules":{"properties":{"storage":{"$ref":"#/components/schemas/CommonStorageFieldsRules"}},"nullable":true,"type":"object"},"CommonStorageFieldsRules":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesRules"},"pvc":{"$ref":"#/components/schemas/PvcsRules"},"hostPath":{"$ref":"#/components/schemas/HostPathsRules"},"nfs":{"$ref":"#/components/schemas/NfssRules"},"git":{"$ref":"#/components/schemas/GitsRules"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsRules"},"secretVolume":{"$ref":"#/components/schemas/SecretsRules"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsRules"}},"nullable":true,"type":"object"},"DataVolumesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"DataVolumeRules":{"properties":{"id":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PvcsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PvcRules":{"properties":{"claimName":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"claimInfo":{"$ref":"#/components/schemas/ClaimInfoRules"}},"nullable":true,"type":"object"},"ClaimInfoRules":{"properties":{"size":{"$ref":"#/components/schemas/StringRules"},"storageClass":{"$ref":"#/components/schemas/StringRules"},"accessModes":{"$ref":"#/components/schemas/PvcAccessModesRules"}},"nullable":true,"type":"object"},"PvcAccessModesRules":{"description":"Rules for access mode(s) for a newly created PVC.","properties":{"readWriteOnce":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyMany":{"$ref":"#/components/schemas/BooleanRules"},"readWriteMany":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"HostPathsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"HostPathRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagationRules"}},"nullable":true,"type":"object"},"HostPathMountPropagationRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/HostPathMountPropagationOptions"}],"nullable":true,"type":"object"},"HostPathMountPropagationOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/HostPathMountPropagation"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}}},"NfssRules":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"NfsRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"server":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"GitsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/GitRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"GitRules":{"properties":{"repository":{"$ref":"#/components/schemas/StringRules"},"branch":{"$ref":"#/components/schemas/StringRules"},"revision":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ConfigMapsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ConfigMapRules":{"properties":{"configMap":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"subPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"SecretRules":{"properties":{"secret":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"EmptyDirsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"EmptyDirRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"medium":{"$ref":"#/components/schemas/StringRules"},"sizeLimit":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"InferenceFieldsRules":{"properties":{"servingPort":{"$ref":"#/components/schemas/ServingPortRules"},"autoscaling":{"$ref":"#/components/schemas/AutoScalingRules"},"servingConfiguration":{"$ref":"#/components/schemas/ServingConfigurationRules"}},"nullable":true,"type":"object"},"ServingPortRules":{"properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"protocol":{"$ref":"#/components/schemas/ServingPortProtocolRules"},"authorizationType":{"$ref":"#/components/schemas/ServingPortAuthorizationTypeRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"authorizedGroups":{"$ref":"#/components/schemas/ArrayRules"},"clusterLocalAccessOnly":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ServingPortProtocolRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ServingPortProtocolOptions"}],"nullable":true,"type":"object"},"ServingPortProtocolOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ServingPortProtocol"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ServingPortAuthorizationTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ServingPortAuthorizationTypeOptions"}],"nullable":true,"type":"object"},"ServingPortAuthorizationTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ServingPortAccessAuthorizationTypeEnum"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"AutoScalingRules":{"properties":{"metricThresholdPercentage":{"$ref":"#/components/schemas/NumberRules"},"minReplicas":{"$ref":"#/components/schemas/IntegerRules"},"maxReplicas":{"$ref":"#/components/schemas/IntegerRules"},"initialReplicas":{"$ref":"#/components/schemas/IntegerRules"},"activationReplicas":{"$ref":"#/components/schemas/IntegerRules"},"metric":{"$ref":"#/components/schemas/AutoScalingMetricRules"},"metricThreshold":{"$ref":"#/components/schemas/IntegerRules"},"concurrencyHardLimit":{"$ref":"#/components/schemas/IntegerRules"},"scaleToZeroRetentionSeconds":{"$ref":"#/components/schemas/IntegerRules"},"scaleDownDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"initializationTimeoutSeconds":{"allOf":[{"$ref":"#/components/schemas/IntegerRules"}],"deprecated":true}},"nullable":true,"type":"object"},"AutoScalingMetricRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/AutoScalingMetricOptions"}],"nullable":true,"type":"object"},"AutoScalingMetricOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/AutoScalingMetric"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ServingConfigurationRules":{"properties":{"initializationTimeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"requestTimeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"}},"nullable":true,"type":"object"},"ImposedAssets":{"description":"a list of datasource assets to import into the policy. these datasources will be included in any workload that will be created in the scope of the policy.","type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"Timestamp":{"description":"The time at which an event occurred. e.g. the time an effective policy has been updated","type":"string","minLength":1,"format":"date-time"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404NotFound":{"description":"The specified resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy/inferences":{"get":{"summary":"Get an inference policy.","description":"Retrieve the details of an inference policy for a given organizational unit.","operationId":"get_inference_policy_v2","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/PolicyScope"},{"$ref":"#/components/parameters/FilterByDepartment"},{"$ref":"#/components/parameters/FilterByProject"},{"$ref":"#/components/parameters/FilterByCluster"}],"responses":{"200":{"description":"Request completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferencePolicyV2"}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"404":{"$ref":"#/components/responses/404NotFound"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Overwrite an inference policy.

> Use to apply an inference policy for a given organizational unit.

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"ValidateOnly":{"name":"validateOnly","in":"query","required":false,"description":"Validate the given policy payload without applying it","schema":{"type":"boolean"}}},"schemas":{"InferencePolicyOverwriteRequestV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyCreationFields"},"policy":{"$ref":"#/components/schemas/InferencePolicyDefaultsAndRulesV2"}},"type":"object"},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"InferencePolicyDefaultsAndRulesV2":{"properties":{"defaults":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFields"},{"$ref":"#/components/schemas/NodeRelatedFlatFields"},{"$ref":"#/components/schemas/CommonItemizedDefaults"},{"$ref":"#/components/schemas/ConnectivityDefaults"},{"$ref":"#/components/schemas/ComputeDefaults"},{"$ref":"#/components/schemas/CommonStorageDefaults"},{"$ref":"#/components/schemas/CommonSecurity"},{"$ref":"#/components/schemas/InferenceFields"}],"nullable":true,"type":"object"},"rules":{"allOf":[{"$ref":"#/components/schemas/InferencePolicyRulesV2"}],"nullable":true,"type":"object"},"imposedAssets":{"$ref":"#/components/schemas/ImposedAssets"},"status":{"$ref":"#/components/schemas/PolicyValidationStatus"}},"nullable":true,"type":"object"},"CommonFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridable"},{"$ref":"#/components/schemas/ContainerNonOverridable"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPod"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPG"}],"nullable":true,"type":"object"},"ContainerOverridable":{"description":"Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"command":{"description":"A command to the server as the entry point of the container running the workload.","type":"string","minLength":1,"nullable":true},"args":{"description":"Arguments to the command that the container running the workload executes.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ContainerNonOverridable":{"description":"Container non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"image":{"description":"Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a workload.","type":"string","minLength":1,"nullable":true},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicy"},"workingDir":{"description":"Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.","type":"string","minLength":1,"nullable":true},"createHomeDir":{"description":"When set to `true`, creates a home directory for the container.","type":"boolean","nullable":true},"probes":{"$ref":"#/components/schemas/Probes"}},"nullable":true,"type":"object"},"ImagePullPolicy":{"description":"Image pull policy. Defaults to `Always` if `:latest` tag is specified, otherwise it is `IfNotPresent`.","type":"string","minLength":1,"enum":["Always","Never","IfNotPresent"],"nullable":true},"Probes":{"description":"Probes are used to determine if the container is healthy and ready to accept traffic.","type":"object","properties":{"readiness":{"$ref":"#/components/schemas/Probe"}},"nullable":true},"Probe":{"type":"object","properties":{"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness or readiness probes are initiated.","type":"integer","format":"int32","minimum":0,"nullable":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe.","type":"integer","format":"int32","minimum":1,"nullable":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out.","type":"integer","format":"int32","minimum":1,"nullable":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed.","type":"integer","format":"int32","minimum":1,"nullable":true},"failureThreshold":{"description":"When a probe fails, the number of times to try before giving up.","type":"integer","format":"int32","minimum":1,"nullable":true},"handler":{"$ref":"#/components/schemas/ProbeHandler"}},"nullable":true},"ProbeHandler":{"description":"The action taken to determine the health of the container. (mandatory)","type":"object","properties":{"httpGet":{"description":"An action based on HTTP Get requests.","type":"object","properties":{"path":{"description":"Path to access on the HTTP server, defaults to /.","type":"string","pattern":"^(\\x2F[a-zA-Z0-9\\-_.\\x2F]*)?$","nullable":true},"port":{"description":"Number of the port to access on the container.","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"host":{"description":"Host name to connect to, defaults to the pod IP.","type":"string","format":"hostname","nullable":true},"scheme":{"$ref":"#/components/schemas/ProbeHandlerScheme"}}}},"nullable":true},"ProbeHandlerScheme":{"description":"Scheme to use for connecting to the host, defaults to HTTP.","type":"string","enum":["HTTP","HTTPS"],"nullable":true},"ResourcesFlatFieldsPerPod":{"description":"Resource parameters.","properties":{"nodeType":{"description":"Nodes (machines), or a group of nodes on which the workload will run. To use this feature, your Administrator will need to label nodes. For more information, see [Group Nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/researcher-setup/limit-to-node-group). When using this flag with with Project-based affinity, it refines the list of allowable node groups set in the Project. For more information, see [Projects](https://docshub.run.ai/guides/platform-management/aiinitiatives/organization/projects).","type":"string","minLength":1,"nullable":true},"nodeAffinityRequired":{"$ref":"#/components/schemas/NodeAffinityRequired"},"podAffinity":{"$ref":"#/components/schemas/PodAffinity"}},"nullable":true,"type":"object"},"NodeAffinityRequired":{"type":"object","description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","properties":{"nodeSelectorTerms":{"description":"A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/components/schemas/NodeSelectorTerm"}}},"nullable":true},"NodeSelectorTerm":{"type":"object","description":"A null or empty node selector term matches no objects. The requirements of them are ANDed.","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"$ref":"#/components/schemas/MatchExpression"}}},"nullable":true},"MatchExpression":{"type":"object","description":"A selector that contains values, a key, and an operator that relates the key and values.","properties":{"key":{"description":"The label key that the selector applies to (mandatory).","type":"string"},"operator":{"$ref":"#/components/schemas/MatchExpressionOperator"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.","type":"array","items":{"type":"string"}}},"required":["key","operator"],"nullable":true},"MatchExpressionOperator":{"description":"Represents a key's relationship to a set of values (mandatory).","type":"string","enum":["In","NotIn","Exists","DoesNotExist","Gt","Lt"]},"PodAffinity":{"description":"Pod affinity scheduling rules (e.g. co-locate this workload in the same node, zone, etc. as some other workloads).","type":"object","properties":{"type":{"$ref":"#/components/schemas/PodAffinityType"},"key":{"description":"The label key to use. (mandatory)","type":"string","nullable":true}},"nullable":true},"PodAffinityType":{"description":"The affinity type, required or preferred. (mandatory)","type":"string","enum":["Required","Preferred"],"nullable":true},"ResourcesFlatFieldsPerPG":{"description":"Resource parameters.","properties":{"category":{"$ref":"#/components/schemas/Category"},"priorityClass":{"$ref":"#/components/schemas/PriorityClass"}},"nullable":true,"type":"object"},"Category":{"description":"Specify the workload category assigned to the workload. Categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.","type":"string","nullable":true},"PriorityClass":{"description":"Specifies the priority class for the workload.  Valid values are: very-low, low, medium-low, medium, medium-high, high, very-high.  You can use this parameter to adjust the workload's scheduling behavior.  Each workload type has a default priority.  To view the default priority for each workload type, use the GET /workload-types endpoint.","type":"string","nullable":true},"NodeRelatedFlatFields":{"description":"Node related parameters.","properties":{"nodePools":{"description":"A prioritized list of node pools for the scheduler to run the workload on. The scheduler will always try to use the first node pool before moving to the next one if the first is not available.","type":"array","items":{"type":"string"},"nullable":true}},"nullable":true,"type":"object"},"CommonItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldDefaults"},{"$ref":"#/components/schemas/AdvancedItemizedDefaults"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldDefaults":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/EnvironmentVariablesDefaults"}},"nullable":true,"type":"object"},"EnvironmentVariablesDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/EnvironmentVariables"}},"nullable":true,"type":"object"},"EnvironmentVariables":{"description":"Set of environment variables to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"nullable":true},"EnvironmentVariable":{"description":"Details of an environment variable which is populated into the container.","properties":{"name":{"description":"The name of the environment variable. (mandatory)","type":"string","minLength":1,"nullable":true},"value":{"description":"The value of the environment variable. (mutually exclusive with secret, credential, configMap and podFieldRef)","type":"string","nullable":true},"secret":{"$ref":"#/components/schemas/EnvironmentVariableSecret"},"configMap":{"$ref":"#/components/schemas/EnvironmentVariableConfigMap"},"podFieldRef":{"$ref":"#/components/schemas/EnvironmentVariablePodFieldReference"},"exclude":{"description":"Use 'true' in case the environment variable is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true},"description":{"description":"Description of the environment variable.","type":"string","nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableSecret":{"description":"Details of the secret and key use to populate the environment variable","properties":{"name":{"description":"The name of the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableConfigMap":{"description":"Details of the configMap and key use to populate the environment variable","properties":{"name":{"description":"The name of the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariablePodFieldReference":{"description":"Details of the field-reference and key use to populate the environment variable","properties":{"path":{"description":"The field path resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"AdvancedItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldDefaults"},{"$ref":"#/components/schemas/LabelsFieldDefaults"},{"$ref":"#/components/schemas/ImagePullSecretsFieldDefaults"},{"$ref":"#/components/schemas/TolerationsFieldDefaults"}],"type":"object","nullable":true},"AnnotationsFieldDefaults":{"properties":{"annotations":{"$ref":"#/components/schemas/AnnotationsDefaults"}},"nullable":true,"type":"object"},"AnnotationsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Annotations"}},"nullable":true,"type":"object"},"Annotations":{"description":"Set of annotations to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Annotation"},"nullable":true},"Annotation":{"description":"Annotation details to be populated into the container.","properties":{"name":{"description":"The name of the annotation (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the annotation.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the annotation is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"LabelsFieldDefaults":{"properties":{"labels":{"$ref":"#/components/schemas/LabelsDefaults"}},"nullable":true,"type":"object"},"LabelsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Labels"}},"nullable":true,"type":"object"},"Labels":{"description":"Set of labels to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Label"},"nullable":true},"Label":{"description":"Label details to be populated into the container.","properties":{"name":{"description":"The name of the label (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the label.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ImagePullSecretsFieldDefaults":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsDefaults"}},"nullable":true,"type":"object"},"ImagePullSecretsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/ImagePullSecrets"}},"nullable":true,"type":"object"},"ImagePullSecrets":{"description":"A list of references to Kubernetes secrets in the same namespace used for pulling container images.","type":"array","items":{"$ref":"#/components/schemas/ImagePullSecret"},"nullable":true},"ImagePullSecret":{"description":"A reference to a secret in the same namespace used to pull container images.","properties":{"name":{"type":"string","description":"The name of the Kubernetes secret containing the image pull credentials."},"userCredential":{"type":"boolean","description":"Indicates whether the secret is a user credential. Set to true if the secret was created by the user and is only accessible by them.","nullable":true},"exclude":{"description":"Use 'true' in case the secret is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"TolerationsFieldDefaults":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsDefaults"}},"nullable":true,"type":"object"},"TolerationsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Toleration"},"instances":{"$ref":"#/components/schemas/Tolerations"}},"nullable":true,"type":"object"},"Toleration":{"description":"Toleration details.","properties":{"name":{"description":"The name of the toleration.","type":"string","minLength":1,"nullable":true},"operator":{"$ref":"#/components/schemas/TolerationOperator"},"key":{"description":"The taint key that the toleration applies to. (mandatory)","type":"string","nullable":true},"value":{"description":"The taint value the toleration matches to. Mandatory if operator is Exists, forbidden otherwise.","type":"string","nullable":true},"effect":{"$ref":"#/components/schemas/TolerationEffect"},"seconds":{"description":"The period of time the toleration tolerates the taint. Valid only if effect is NoExecute. taint.","type":"integer","minimum":1,"nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TolerationOperator":{"description":"A key's relationship to the value. Equal uses key and value. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. (mandatory)","type":"string","enum":["Equal","Exists"],"nullable":true},"TolerationEffect":{"description":"The taint effect to match. (mandatory)","type":"string","enum":["NoSchedule","NoExecute","PreferNoSchedule","Any"],"nullable":true},"Tolerations":{"description":"Set of tolerations to apply to the workload.","type":"array","items":{"$ref":"#/components/schemas/Toleration"},"nullable":true},"ConnectivityDefaults":{"properties":{"ports":{"$ref":"#/components/schemas/PortsDefaults"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsDefaults"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsDefaults"}},"nullable":true,"type":"object"},"PortsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Port"},"instances":{"$ref":"#/components/schemas/Ports"}},"nullable":true,"type":"object"},"Port":{"description":"A port for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"serviceType":{"$ref":"#/components/schemas/PortServiceType"},"external":{"description":"The external port which allows a connection to the container port. If not specified, the port will be auto-generated by the system..","type":"integer","format":"int32","nullable":true},"toolType":{"description":"The tool type that runs on this port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this port.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PortServiceType":{"description":"The service type of the port (mandatory).","type":"string","enum":["LoadBalancer","NodePort","ClusterIP"],"nullable":true},"Ports":{"description":"Set of container ports that the workload exposes.","type":"array","items":{"$ref":"#/components/schemas/Port"},"nullable":true},"ExposedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrl"},"instances":{"$ref":"#/components/schemas/ExposedUrls"}},"nullable":true,"type":"object"},"ExposedUrl":{"description":"A URL for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","nullable":true},"url":{"description":"The URL for connecting to the container port. If not specified, the URL will be auto-generated by the system..","type":"string","nullable":true},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"toolType":{"description":"The tool type that runs on this container port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this url.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the instance is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExposedUrls":{"description":"Set of container ports that the workload exposes via URLs.","type":"array","items":{"$ref":"#/components/schemas/ExposedUrl"},"nullable":true},"RelatedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrl"},"instances":{"$ref":"#/components/schemas/RelatedUrls"}},"nullable":true,"type":"object"},"RelatedUrl":{"description":"A URL that is related to the workload. For example, a URL to an external server providing statistics or logging about the workload.","properties":{"url":{"description":"The URL for connecting an external service related to the workload. (mandatory)","type":"string","nullable":true},"type":{"description":"The type of service that the url provides. For example, wandb (Weights & Biases). (mandatory)","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"RelatedUrls":{"description":"Set of URLs that are related to the workload.","type":"array","items":{"$ref":"#/components/schemas/RelatedUrl"},"nullable":true},"ComputeDefaults":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsDefaults"}},"nullable":true,"type":"object"},"ComputeFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFields"},{"$ref":"#/components/schemas/ComputeItemizedFieldsDefaults"}],"nullable":true,"type":"object"},"ComputeFlatFields":{"properties":{"gpuDevicesRequest":{"description":"Requested number of GPU devices. Currently if more than one device is requested, it is not possible to provide values for gpuMemory, gpuPortion or migProfile [deprecated].","type":"integer","format":"int32","nullable":true,"minimum":0},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestType"},"gpuPortionRequest":{"description":"Required if and only if gpuRequestType is portion. States the portion of the GPU to allocate for the created workload, per GPU device, between 0 and 1. The default is no allocated GPUs.","type":"number","format":"double","nullable":true,"minimum":0},"gpuPortionLimit":{"description":"Limitations on the portion consumed by the workload, per GPU device. The system guarantees The gpuPotionLimit must be no less than the gpuPortionRequest.","type":"number","format":"double","nullable":true,"minimum":0},"gpuMemoryRequest":{"description":"Required if and only if gpuRequestType is memory. States the GPU memory to allocate for the created workload, per GPU device. Note that the workload will not be scheduled unless the system can guarantee this amount of GPU memory to the workload.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"gpuMemoryLimit":{"description":"Limitation on the memory consumed by the workload, per GPU device. The system guarantees The gpuMemoryLimit must be no less than gpuMemoryRequest.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"migProfile":{"$ref":"#/components/schemas/MigProfile","depracted":true},"cpuCoreRequest":{"description":"CPU units to allocate for the created workload (0.5, 1, .etc). The workload will receive at least this amount of CPU. Note that the workload will not be scheduled unless the system can guarantee this amount of CPUs to the workload.","format":"double","type":"number","nullable":true,"minimum":0},"cpuCoreLimit":{"description":"Limitations on the number of CPUs consumed by the workload (0.5, 1, .etc). The system guarantees that this workload will not be able to consume more than this amount of CPUs.","format":"double","type":"number","nullable":true,"minimum":0},"cpuMemoryRequest":{"description":"The amount of CPU memory to allocate for this workload (1G, 20M, .etc). The workload will receive at least this amount of memory. Note that the workload will not be scheduled unless the system can guarantee this amount of memory to the workload","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"cpuMemoryLimit":{"description":"Limitations on the CPU memory to allocate for this workload (1G, 20M, .etc). The system guarantees that this workload will not be able to consume more than this amount of memory. The workload will receive an error when trying to allocate more memory than this limit.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"largeShmRequest":{"description":"A large /dev/shm device to mount into a container running the created workload. An shm is a shared file system mounted on RAM.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"GpuRequestType":{"description":"Sets the unit type for GPU resources requests. Stated in terms of portion, memory or  mig profile [deprecated]. Sets the unit type for other GPU request fields. If `gpuDevicesRequest > 1`, only `portion` is supported. If `gpuDeviceRequest = 1`, the request type can be stated as `portion`, `memory` or `migProfile` [deprecated].","type":"string","minLength":1,"enum":["portion","memory","migProfile"],"nullable":true},"MigProfile":{"description":"Required only if `gpuRequestType` is `migProfile`. This states the memory profile to be used for the workload running NVIDIA Multi-Instance GPU (MIG) technology.","type":"string","deprecated":true,"minLength":1,"enum":["1g.5gb","1g.10gb","2g.10gb","2g.20gb","3g.20gb","3g.40gb","4g.20gb","4g.40gb","7g.40gb","7g.80gb"],"nullable":true},"ComputeItemizedFieldsDefaults":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesDefaults"}},"nullable":true,"type":"object"},"ExtendedResourcesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResource"},"instances":{"$ref":"#/components/schemas/ExtendedResources"}},"nullable":true,"type":"object"},"ExtendedResource":{"description":"Quantity of an extended resource.","properties":{"resource":{"description":"The name of the extended resource (mandatory)","type":"string","minLength":1,"nullable":true},"quantity":{"description":"The requested quantity for the resource.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the extended resource is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExtendedResources":{"description":"Extended resources and their quantity.","type":"array","items":{"$ref":"#/components/schemas/ExtendedResource"},"nullable":true},"CommonStorageDefaults":{"properties":{"storage":{"$ref":"#/components/schemas/CommonStorageFieldsDefaults"}},"nullable":true,"type":"object"},"CommonStorageFieldsDefaults":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesDefaults"},"pvc":{"$ref":"#/components/schemas/PvcsDefaults"},"hostPath":{"$ref":"#/components/schemas/HostPathsDefaults"},"nfs":{"$ref":"#/components/schemas/NfssDefaults"},"git":{"$ref":"#/components/schemas/GitsDefaults"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsDefaults"},"secretVolume":{"$ref":"#/components/schemas/SecretsDefaults"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsDefaults"}},"nullable":true,"type":"object"},"DataVolumesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeInstance"},"instances":{"$ref":"#/components/schemas/DataVolumeItems"}},"nullable":true,"type":"object"},"DataVolumeInstance":{"allOf":[{"$ref":"#/components/schemas/DataVolume"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"DataVolume":{"properties":{"id":{"description":"The unique identifier of the data volume. (mandatory)","type":"string","format":"uuid","nullable":true},"mountPath":{"description":"The path where the data volume will be mounted. (mandatory)","type":"string","nullable":true}},"nullable":true,"type":"object"},"ExcludeField":{"properties":{"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"type":"object","nullable":true},"DataVolumeItems":{"description":"Set of data volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/DataVolumeInstance"},"nullable":true},"PvcsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcInstance"},"instances":{"$ref":"#/components/schemas/PvcItems"}},"nullable":true,"type":"object"},"PvcInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Pvc"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"StorageInstanceName":{"properties":{"name":{"description":"unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"Pvc":{"allOf":[{"$ref":"#/components/schemas/PvcFieldsUpdatable"},{"$ref":"#/components/schemas/PvcFieldsNonUpdatable"}]},"PvcFieldsUpdatable":{"properties":{"path":{"description":"Local path within the workload to which the PVC bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"PvcFieldsNonUpdatable":{"properties":{"existingPvc":{"description":"Verify existing PVC. PVC is assumed to exist when set to `true`. If set to `false`, the PVC will be created, if it does not exist.","type":"boolean","default":false,"nullable":true},"claimName":{"description":"Name for the PVC. Allow referencing it across workloads. If not provided, a name based on the workload name and scope will be auto-generated.","type":"string","minLength":1,"maxLength":63,"nullable":true},"readOnly":{"description":"Permit only read access to PVC.","type":"boolean","default":false,"nullable":true},"ephemeral":{"description":"Use `true` to set PVC to ephemeral. If set to `true`, the PVC will be deleted when the workload is stopped. Not supported for inference workloads.","type":"boolean","default":false,"nullable":true},"claimInfo":{"$ref":"#/components/schemas/ClaimInfo"},"dataSharing":{"description":"use `true` to share the PVC data to all projects under the selected scope.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"ClaimInfo":{"description":"Claim information for the newly created PVC. The information should not be provided when attempting to use existing PVC.","properties":{"size":{"$ref":"#/components/schemas/PvcClaimSize"},"storageClass":{"description":"Storage class name to associate with the PVC. This parameter may be omitted if there is a single storage class in the system, or you are using the default storage class. For more information, see [Storage class](https://kubernetes.io/docs/concepts/storage/storage-classes).","type":"string","minLength":1,"nullable":true},"accessModes":{"$ref":"#/components/schemas/PvcAccessModes"},"volumeMode":{"$ref":"#/components/schemas/PvcVolumeMode"},"addedAttrValues":{"$ref":"#/components/schemas/PvcAddedAttrValues"}},"nullable":true,"type":"object"},"PvcClaimSize":{"description":"Requested size for the PVC. Mandatory when existingPvc is false. Recommended sizes: TB/GB/MB/TIB/GIB/MIB","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"PvcAccessModes":{"description":"Requested access mode(s) for the newly created PVC.","properties":{"readWriteOnce":{"description":"Requesting claim that can be mounted in read/write mode to exactly one host. This is the default access mode.","type":"boolean","default":true,"nullable":true},"readOnlyMany":{"description":"Requesting claim that can be mounted in read-only mode to many hosts.","type":"boolean","default":false,"nullable":true},"readWriteMany":{"description":"Requesting claim that can be mounted in read/write mode to many hosts.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PvcVolumeMode":{"description":"The volume mode required by the claim. Choose Filesystem (default) or Block.","type":"string","enum":["Filesystem","Block"],"nullable":true},"PvcAddedAttrValues":{"description":"an optional array of key-values pairs that are written as annotations on the created PVC. the allowed attributes are determined according to the storage class configuration (see k8s-objects-tracker for further info).","type":"array","items":{"$ref":"#/components/schemas/PvcAddedAttrValue"}},"PvcAddedAttrValue":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":63,"pattern":"^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$"},"value":{"type":"string"}}},"PvcItems":{"description":"Set of pvc persistent volume claims to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/PvcInstance"},"nullable":true},"HostPathsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathInstance"},"instances":{"$ref":"#/components/schemas/HostPathItems"}},"nullable":true,"type":"object"},"HostPathInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/HostPath"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"HostPath":{"properties":{"path":{"description":"Local path within the controller to which the host volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","default":true,"nullable":true},"mountPath":{"description":"The path that the host volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagation"}},"nullable":true,"type":"object"},"HostPathMountPropagation":{"description":"Share this volumes mount with other containers. If set to HostToContainer, this volume mount will receive all subsequent mounts that are mounted to this volume or any of its subdirectories. In case of multiple hostPath entries, this field should have the same value for all of them.","type":"string","enum":["None","HostToContainer"],"nullable":true},"HostPathItems":{"description":"Set of host paths to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/HostPathInstance"},"nullable":true},"NfssDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsInstance"},"instances":{"$ref":"#/components/schemas/NfsItems"}},"nullable":true,"type":"object"},"NfsInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Nfs"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Nfs":{"properties":{"path":{"description":"Path that is exported by the NFS server (mandatory). For more information, see [NFS](https://kubernetes.io/docs/concepts/storage/volumes#nfs).","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the NFS export to be mounted with read-only permissions.","type":"boolean","default":true,"nullable":true},"server":{"description":"The hostname or IP address of the NFS server. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"The path that the NFS volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"NfsItems":{"description":"Set of nfs volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/NfsInstance"},"nullable":true},"GitsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/GitInstance"},"instances":{"$ref":"#/components/schemas/GitItems"}},"nullable":true,"type":"object"},"GitInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/GitCommon"},{"$ref":"#/components/schemas/GitPassword"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"GitCommon":{"properties":{"repository":{"description":"URL to a remote Git repository. The content of this repository will be mapped to the container running the workload. (mandatory)","type":"string","minLength":1,"nullable":true},"branch":{"description":"Specific branch to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"revision":{"description":"Specific revision to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the Git repository will be mapped (mandatory).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitPassword":{"properties":{"passwordSecret":{"description":"Secret containing the credentials of the repository (needed for non public repository which requires authentication).","type":"string","minLength":1,"nullable":true},"secretKeyOfUser":{"description":"The key to use for loading the user name from the secret. The default is `User`.","type":"string","minLength":1,"nullable":true},"secretKeyOfPassword":{"description":"The key to use for loading the password from the secret. The default is `Password`.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitItems":{"description":"Set of git repositories to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/GitInstance"},"nullable":true},"ConfigMapsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapInstance"},"instances":{"$ref":"#/components/schemas/ConfigMapField"}},"nullable":true,"type":"object"},"ConfigMapInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/ConfigMap"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"ConfigMap":{"properties":{"configMap":{"description":"The name of the ConfigMap resource. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"Local path within the workload to which the ConfigMap will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ConfigMapField":{"description":"Set of config map volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/ConfigMapInstance"},"nullable":true},"SecretsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretInstance2"},"instances":{"$ref":"#/components/schemas/SecretItems1"}},"nullable":true,"type":"object"},"SecretInstance2":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Secret5"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Secret5":{"allOf":[{"$ref":"#/components/schemas/SecretFieldsUpdatable"},{"$ref":"#/components/schemas/SecretFieldsNonUpdatable"}]},"SecretFieldsUpdatable":{"properties":{"mountPath":{"description":"Local path within the workload to which the Secret will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretFieldsNonUpdatable":{"properties":{"secret":{"description":"The name of the Secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretItems1":{"description":"Set of secret volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/SecretInstance2"},"nullable":true},"EmptyDirsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirInstance"},"instances":{"$ref":"#/components/schemas/EmptyDirItems"}},"nullable":true,"type":"object"},"EmptyDirInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/EmptyDir"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"EmptyDir":{"properties":{"path":{"description":"Local path within the workload to which the EmptyDir volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"medium":{"description":"The type of storage medium for the volume. Use \"Memory\" for memory-backed storage, or leave empty for disk-backed storage.","type":"string","minLength":1,"nullable":true},"sizeLimit":{"description":"The total amount of local storage or memory required for the emptyDir volume. Specify using Kubernetes quantity format (e.g., 1G, 500Mi).","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true}},"nullable":true,"type":"object"},"EmptyDirItems":{"description":"A list of emptyDir volumes to mount in the workload.","type":"array","items":{"$ref":"#/components/schemas/EmptyDirInstance"},"nullable":true},"CommonSecurity":{"properties":{"security":{"$ref":"#/components/schemas/CommonSecurityFlatFields"}},"nullable":true,"type":"object"},"CommonSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridable"},{"$ref":"#/components/schemas/CommonSecurityOverridable"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridable":{"description":"Security non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSource"},"capabilities":{"description":"Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.","type":"array","items":{"$ref":"#/components/schemas/Capability"},"nullable":true},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileType"},"runAsNonRoot":{"description":"Force the container to run as a non-root user.","type":"boolean","nullable":true},"readOnlyRootFilesystem":{"description":"If true, mounts the container's root filesystem as read-only.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"UidGidSource":{"description":"Indicate the way to determine the user and group ids of the container. The options are a. `fromTheImage` - user and group ids are determined by the docker image that the container runs. this is the default option. b. `custom` - user and group ids can be specified in the environment asset and/or the workload creation request. c. `idpToken` - user and group ids are determined according to the identity provider (idp) access token. This option is intended for internal use of the environment UI form. For more information, see [User Identity](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/runai-setup/config/non-root-containers/).","type":"string","enum":["fromTheImage","fromIdpToken","custom"],"nullable":true},"Capability":{"type":"string","enum":["AUDIT_CONTROL","AUDIT_READ","AUDIT_WRITE","BLOCK_SUSPEND","CHOWN","DAC_OVERRIDE","DAC_READ_SEARCH","FOWNER","FSETID","IPC_LOCK","IPC_OWNER","KILL","LEASE","LINUX_IMMUTABLE","MAC_ADMIN","MAC_OVERRIDE","MKNOD","NET_ADMIN","NET_BIND_SERVICE","NET_BROADCAST","NET_RAW","SETGID","SETFCAP","SETPCAP","SETUID","SYS_ADMIN","SYS_BOOT","SYS_CHROOT","SYS_MODULE","SYS_NICE","SYS_PACCT","SYS_PTRACE","SYS_RAWIO","SYS_RESOURCE","SYS_TIME","SYS_TTY_CONFIG","SYSLOG","WAKE_ALARM"]},"SeccompProfileType":{"description":"Indicates which kind of seccomp profile will be applied to the container. The options are a. `RuntimeDefault` - the container runtime default profile should be used. b. `Unconfined` - no profile should be applied. c. `Localhost` is not yet supported by Run:ai.","type":"string","enum":["RuntimeDefault","Unconfined","Localhost"],"nullable":true},"CommonSecurityOverridable":{"description":"Security overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"runAsUid":{"description":"The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsUid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"runAsGid":{"description":"The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsGid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"supplementalGroups":{"description":"Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled. Using an empty string implies reverting the supplementary groups of the image.","type":"string","nullable":true}},"nullable":true,"type":"object"},"InferenceFields":{"properties":{"servingPort":{"$ref":"#/components/schemas/ServingPort"},"autoscaling":{"$ref":"#/components/schemas/AutoScaling"},"servingConfiguration":{"$ref":"#/components/schemas/ServingConfiguration"}},"nullable":true,"type":"object"},"ServingPort":{"description":"A port for accessing the inference service","allOf":[{"$ref":"#/components/schemas/ServingPortContainerAndProtocol"},{"$ref":"#/components/schemas/ServingPortAccess"}],"nullable":true,"type":"object"},"ServingPortContainerAndProtocol":{"properties":{"container":{"description":"The port that the container running the inference service exposes (mandatory).","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"protocol":{"$ref":"#/components/schemas/ServingPortProtocol"}}},"ServingPortProtocol":{"description":"The protocol used by the port, defaults to http","type":"string","enum":["http","grpc"],"nullable":true},"ServingPortAccess":{"properties":{"authorizationType":{"$ref":"#/components/schemas/ServingPortAccessAuthorizationTypeEnum"},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"clusterLocalAccessOnly":{"description":"Configure the serving port URL to be available only on the cluster-local network, and not externally. Defaults to false","type":"boolean","nullable":true}}},"ServingPortAccessAuthorizationTypeEnum":{"type":"string","enum":["public","authenticatedUsers","authorizedUsersOrGroups"],"description":"The authorization type for serving port URL access. Defaults to public, which means no authorization is required. If set to authenticatedUsers, only authenticated Run:ai users are allowed to access the URL. If set to authorizedUsersOrGroups, only users or groups specified in authorizedUsers or authorizedGroups are allowed to access the URL. Supported from cluster version 2.19.","nullable":true},"AutoScaling":{"allOf":[{"$ref":"#/components/schemas/AutoScalingCommonFields"},{"$ref":"#/components/schemas/AutoScalingMetricFields"}],"nullable":true,"type":"object"},"AutoScalingCommonFields":{"description":"Auto scaling common fields","properties":{"metricThresholdPercentage":{"description":"The percentage of metric threshold value to use for autoscaling. Defaults to 70. Applicable only with the 'throughput' and 'concurrency' metrics","type":"number","format":"float","minimum":1,"maximum":100,"nullable":true},"minReplicas":{"description":"The minimum number of replicas for autoscaling. Defaults to 1. Use 0 to allow scale-to-zero","type":"integer","format":"int32","minimum":0,"nullable":true},"maxReplicas":{"description":"The maximum number of replicas for autoscaling. Defaults to minReplicas, or to 1 if minReplicas is set to 0","type":"integer","format":"int32","minimum":1,"nullable":true},"initialReplicas":{"description":"The number of replicas to run when initializing the workload for the first time. Defaults to minReplicas, or to 1 if minReplicas is set to 0","type":"integer","format":"int32","minimum":0,"nullable":true},"activationReplicas":{"description":"The number of replicas to run when scaling-up from zero. Defaults to minReplicas, or to 1 if minReplicas is set to 0","type":"integer","format":"int32","minimum":1,"nullable":true},"concurrencyHardLimit":{"description":"The maximum number of requests allowed to flow to a single replica at any time. 0 means no limit","type":"integer","format":"int32","minimum":0,"nullable":true},"scaleToZeroRetentionSeconds":{"description":"The minimum amount of time (in seconds) that the last replica will remain active after a scale-to-zero decision. Defaults to 0. Available only if minReplicas is set to 0","type":"integer","format":"int32","minimum":0,"maximum":3600,"nullable":true},"scaleDownDelaySeconds":{"description":"The minimum amount of time (in seconds) that a replica will remain active after a scale-down decision","type":"integer","format":"int32","minimum":0,"maximum":3600,"nullable":true},"initializationTimeoutSeconds":{"description":"Use `servingConfiguration.initializationTimeoutSeconds` instead.  If this field is set, it will be ignored and the value under `servingConfiguration` will be used. The maximum amount of time (in seconds) to wait for the container to become ready.","type":"integer","format":"int32","minimum":1,"nullable":true,"deprecated":true}},"nullable":true,"type":"object"},"AutoScalingMetricFields":{"description":"Auto scaling metric fields","properties":{"metric":{"$ref":"#/components/schemas/AutoScalingMetric"},"metricThreshold":{"description":"The threshold to use with the specified metric for autoscaling. Mandatory if metric is specified","type":"integer","format":"int32","nullable":true}},"nullable":true,"type":"object"},"AutoScalingMetric":{"description":"The metric to use for autoscaling. Mandatory if minReplicas < maxReplicas, except for the special case where minReplicas is set to 0 and maxReplicas is set to 1, as in this case autoscaling decisions are made according to network activity rather than metrics. Use one of the built-in metrics of 'throughput', 'concurrency' or 'latency', or any other available custom metric. Only the 'throughput' and 'concurrency' metrics support scale-to-zero","type":"string","pattern":"^[a-zA-Z_:][a-zA-Z0-9_:]*$","nullable":true},"ServingConfiguration":{"description":"The inference workload serving configuration.","properties":{"initializationTimeoutSeconds":{"description":"The maximum time (in seconds) allowed for a workload to initialize and become ready. If the workload does not start within this time, it will be moved to failed state.","type":"integer","format":"int32","minimum":1,"nullable":true},"requestTimeoutSeconds":{"description":"The maximum time (in seconds) allowed to process an end-user request. If no response is returned within this time, the request will be ignored.Supported from Cluster version 2.22","type":"integer","format":"int32","minimum":1,"nullable":true}},"nullable":true,"type":"object"},"InferencePolicyRulesV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFieldsRules"},{"$ref":"#/components/schemas/NodeRelatedFlatFieldsRules"},{"$ref":"#/components/schemas/CommonItemizedFieldsRules"},{"$ref":"#/components/schemas/ConnectivityRules"},{"$ref":"#/components/schemas/ComputeRules"},{"$ref":"#/components/schemas/InferenceSecurityRules"},{"$ref":"#/components/schemas/CommonStorageRules"},{"$ref":"#/components/schemas/InferenceFieldsRules"}]},"CommonFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridableRules"},{"$ref":"#/components/schemas/ContainerNonOverridableRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPodRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPGRules"}],"nullable":true,"type":"object"},"ContainerOverridableRules":{"description":"Container related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"command":{"$ref":"#/components/schemas/StringRules"},"args":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StringRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/StringRulesOptions"}],"nullable":true,"type":"object"},"StringRulesCommon":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true}}},"SourceOfRule":{"description":"This field is used by the system along with effective rules, in order to specify the org unit from which this effective rule has been derived. It should be left empty when sending apply policy requests.","required":["scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"isFallback":{"description":"source of this rule is the fallback policy","type":"boolean"}},"nullable":true,"type":"object"},"StringRulesOptions":{"properties":{"options":{"description":"Set of options that the value of the field must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"},"nullable":true}}},"StringOption":{"description":"One of the values that the field can be assigned to, when options police is applied on the field.","required":["value"],"properties":{"value":{"description":"The value that the field should hold","type":"string"},"displayed":{"description":"Textual description of the value. to be used by user interface applications.","type":"string","nullable":true}}},"ContainerNonOverridableRules":{"properties":{"image":{"$ref":"#/components/schemas/StringRules"},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicyRules"},"workingDir":{"$ref":"#/components/schemas/StringRules"},"createHomeDir":{"$ref":"#/components/schemas/BooleanRules"},"probes":{"$ref":"#/components/schemas/ProbesRules"}},"nullable":true,"type":"object"},"ImagePullPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ImagePullPolicyOptions"}],"nullable":true,"type":"object"},"ImagePullPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ImagePullPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"BooleanRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ProbesRules":{"properties":{"readiness":{"$ref":"#/components/schemas/ProbeRules"}},"nullable":true,"type":"object"},"ProbeRules":{"properties":{"initialDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"periodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"timeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"successThreshold":{"$ref":"#/components/schemas/IntegerRules"},"failureThreshold":{"$ref":"#/components/schemas/IntegerRules"},"handler":{"$ref":"#/components/schemas/ProbeHandlerRules"}},"nullable":true,"type":"object"},"IntegerRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"DefaultFromRule":{"properties":{"field":{"description":"The default of this field is taken from another field, with optional factor. The specified field must belong to the same workload section (compute, security, etc). For itemized field, the value of the field will be taken from the same instance.","type":"string","nullable":true},"factor":{"description":"Multiple the value of the fromField by this factor to get the value for this field For example, if factor is 2 and defaultFrom field has value of 8, the calculated default will be determined to be 16.","type":"number","format":"double","nullable":true,"default":1}},"nullable":true,"type":"object"},"ProbeHandlerRules":{"properties":{"httpGet":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"port":{"$ref":"#/components/schemas/IntegerRules"},"host":{"$ref":"#/components/schemas/StringRules"},"scheme":{"$ref":"#/components/schemas/StringRules"}}}},"nullable":true,"type":"object"},"ResourcesFlatFieldsPerPodRules":{"description":"Resource related parameters.","properties":{"nodeType":{"$ref":"#/components/schemas/StringRules"},"nodeAffinityRequired":{"$ref":"#/components/schemas/ArbitraryRules"},"podAffinity":{"$ref":"#/components/schemas/PodAffinityRules"}},"nullable":true,"type":"object"},"ArbitraryRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this arbitrary object is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"PodAffinityRules":{"properties":{"type":{"$ref":"#/components/schemas/PodAffinityTypeRules"},"key":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PodAffinityTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PodAffinityTypeOptions"}],"nullable":true,"type":"object"},"PodAffinityTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PodAffinityType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"type":"object"},"ResourcesFlatFieldsPerPGRules":{"description":"Resource related parameters.","properties":{"category":{"$ref":"#/components/schemas/StringRules"},"priorityClass":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NodeRelatedFlatFieldsRules":{"description":"Node pools related parameters.","properties":{"nodePools":{"$ref":"#/components/schemas/ArrayRules"}},"nullable":true,"type":"object"},"ArrayRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this array is mandatory. Mandatory array must include at least one item. default to false.","type":"boolean","nullable":true},"options":{"description":"Set of options that the value of each item of the array must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"}},"canEdit":{"description":"Whether the value of the array, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"CommonItemizedFieldsRules":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldRules"},{"$ref":"#/components/schemas/AdvancedItemizedRules"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldRules":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"InstancesRules":{"properties":{"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ItemRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canAdd":{"description":"Whether it is permitted to add items. Default to true.","type":"boolean","nullable":true},"locked":{"description":"Set of keys for items that are \"locked\", i.e. cannot be removed or deleted.","type":"array","items":{"type":"string"}}},"nullable":true,"type":"object"},"AdvancedItemizedRules":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldRules"},{"$ref":"#/components/schemas/LabelsFieldRules"},{"$ref":"#/components/schemas/ImagePullSecretsFieldRules"},{"$ref":"#/components/schemas/TolerationsFieldRules"}],"type":"object","nullable":true},"AnnotationsFieldRules":{"properties":{"annotations":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"LabelsFieldRules":{"properties":{"labels":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"ImagePullSecretsFieldRules":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ImagePullSecretsRulesAttributes"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRulesAttributes":{"description":"Rules for the attributes of imagePullSecrets","properties":{"name":{"$ref":"#/components/schemas/StringRules"},"userCredentials":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationsFieldRules":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsRules"}},"nullable":true,"type":"object"},"TolerationsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/TolerationRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"TolerationRules":{"description":"Toleration details.","properties":{"operator":{"$ref":"#/components/schemas/TolerationOperatorRules"},"key":{"$ref":"#/components/schemas/StringRules"},"value":{"$ref":"#/components/schemas/StringRules"},"effect":{"$ref":"#/components/schemas/TolerationEffectRules"},"seconds":{"$ref":"#/components/schemas/IntegerRules"},"exclude":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationOperatorRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationOperatorOptions"}],"nullable":true,"type":"object"},"TolerationOperatorOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationOperator"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"TolerationEffectRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationEffectOptions"}],"nullable":true,"type":"object"},"TolerationEffectOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationEffect"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ConnectivityRules":{"properties":{"ports":{"$ref":"#/components/schemas/PortsRules"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsRules"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsRules"}},"nullable":true,"type":"object"},"PortsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PortRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PortRules":{"description":"Rules for port attributes","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"serviceType":{"$ref":"#/components/schemas/PortServiceTypeRules"},"customExternalPort":{"$ref":"#/components/schemas/BooleanRules"},"external":{"$ref":"#/components/schemas/IntegerRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PortServiceTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PortServiceTypeOptions"}],"nullable":true,"type":"object"},"PortServiceTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PortServiceType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ExposedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExposedUrlRules":{"description":"Rules for the attributed of exposedUrls","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"customUrl":{"$ref":"#/components/schemas/BooleanRules"},"url":{"$ref":"#/components/schemas/StringRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"RelatedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"RelatedUrlRules":{"description":"Rules for the attributes of relatedUrls","properties":{"url":{"$ref":"#/components/schemas/StringRules"},"type":{"$ref":"#/components/schemas/StringRules"},"name":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ComputeRules":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsRules"}},"nullable":true,"type":"object"},"ComputeFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFieldsRules"},{"$ref":"#/components/schemas/ComputeItemizedFieldsRules"}],"nullable":true,"type":"object"},"ComputeFlatFieldsRules":{"properties":{"cpuCoreRequest":{"$ref":"#/components/schemas/NumberRules"},"cpuCoreLimit":{"$ref":"#/components/schemas/NumberRules"},"cpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"cpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"},"largeShmRequest":{"$ref":"#/components/schemas/BooleanRules"},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestRules"},"migProfile":{"$ref":"#/components/schemas/MigProfileRules","deprecated":true},"gpuDevicesRequest":{"$ref":"#/components/schemas/IntegerRules"},"gpuPortionRequest":{"$ref":"#/components/schemas/NumberRules"},"gpuPortionLimit":{"$ref":"#/components/schemas/NumberRules"},"gpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"gpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"}},"nullable":true,"type":"object"},"NumberRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"number","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"number","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=3, step=0.25 implies that the values the field can hold are 2, 2.25, 2.5 and 3.","type":"number","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"QuantityRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"max":{"description":"The maximum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"GpuRequestRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/GpuRequestOptions"}],"nullable":true,"type":"object"},"GpuRequestOptions":{"properties":{"options":{"description":"Limit the permitted values for gpuRequest to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/GpuRequestType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"MigProfileRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/MigProfileOptions"}],"nullable":true,"type":"object"},"MigProfileOptions":{"properties":{"options":{"description":"Limit the permitted values for migProfile to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/MigProfile"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object","deprecated":true},"ComputeItemizedFieldsRules":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesRules"}},"nullable":true,"type":"object"},"ExtendedResourcesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResourceRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExtendedResourceRules":{"description":"Rules for the attributes of extendedResources","properties":{"quantity":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"InferenceSecurityRules":{"properties":{"security":{"$ref":"#/components/schemas/CommonSecurityFlatFieldsRules"}},"nullable":true,"type":"object"},"CommonSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridableRules"},{"$ref":"#/components/schemas/CommonSecurityOverridableRules"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridableRules":{"properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSourceRules"},"capabilities":{"$ref":"#/components/schemas/ArrayRules"},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileTypeRules"},"runAsNonRoot":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyRootFilesystem":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"UidGidSourceRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/UidGidSourceOptions"}],"nullable":true,"type":"object"},"UidGidSourceOptions":{"properties":{"options":{"description":"Limit the permitted values for uidGidSource to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/UidGidSource"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"SeccompProfileTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/SeccompProfileTypeOptions"}],"nullable":true,"type":"object"},"SeccompProfileTypeOptions":{"properties":{"options":{"description":"Limit the permitted values for secompProfileType to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/SeccompProfileType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"CommonSecurityOverridableRules":{"description":"Security related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"runAsUid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"runAsGid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"supplementalGroups":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"IntegerRulesOptional":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"CommonStorageRules":{"properties":{"storage":{"$ref":"#/components/schemas/CommonStorageFieldsRules"}},"nullable":true,"type":"object"},"CommonStorageFieldsRules":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesRules"},"pvc":{"$ref":"#/components/schemas/PvcsRules"},"hostPath":{"$ref":"#/components/schemas/HostPathsRules"},"nfs":{"$ref":"#/components/schemas/NfssRules"},"git":{"$ref":"#/components/schemas/GitsRules"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsRules"},"secretVolume":{"$ref":"#/components/schemas/SecretsRules"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsRules"}},"nullable":true,"type":"object"},"DataVolumesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"DataVolumeRules":{"properties":{"id":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PvcsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PvcRules":{"properties":{"claimName":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"claimInfo":{"$ref":"#/components/schemas/ClaimInfoRules"}},"nullable":true,"type":"object"},"ClaimInfoRules":{"properties":{"size":{"$ref":"#/components/schemas/StringRules"},"storageClass":{"$ref":"#/components/schemas/StringRules"},"accessModes":{"$ref":"#/components/schemas/PvcAccessModesRules"}},"nullable":true,"type":"object"},"PvcAccessModesRules":{"description":"Rules for access mode(s) for a newly created PVC.","properties":{"readWriteOnce":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyMany":{"$ref":"#/components/schemas/BooleanRules"},"readWriteMany":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"HostPathsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"HostPathRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagationRules"}},"nullable":true,"type":"object"},"HostPathMountPropagationRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/HostPathMountPropagationOptions"}],"nullable":true,"type":"object"},"HostPathMountPropagationOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/HostPathMountPropagation"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}}},"NfssRules":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"NfsRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"server":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"GitsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/GitRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"GitRules":{"properties":{"repository":{"$ref":"#/components/schemas/StringRules"},"branch":{"$ref":"#/components/schemas/StringRules"},"revision":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ConfigMapsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ConfigMapRules":{"properties":{"configMap":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"subPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"SecretRules":{"properties":{"secret":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"EmptyDirsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"EmptyDirRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"medium":{"$ref":"#/components/schemas/StringRules"},"sizeLimit":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"InferenceFieldsRules":{"properties":{"servingPort":{"$ref":"#/components/schemas/ServingPortRules"},"autoscaling":{"$ref":"#/components/schemas/AutoScalingRules"},"servingConfiguration":{"$ref":"#/components/schemas/ServingConfigurationRules"}},"nullable":true,"type":"object"},"ServingPortRules":{"properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"protocol":{"$ref":"#/components/schemas/ServingPortProtocolRules"},"authorizationType":{"$ref":"#/components/schemas/ServingPortAuthorizationTypeRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"authorizedGroups":{"$ref":"#/components/schemas/ArrayRules"},"clusterLocalAccessOnly":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ServingPortProtocolRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ServingPortProtocolOptions"}],"nullable":true,"type":"object"},"ServingPortProtocolOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ServingPortProtocol"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ServingPortAuthorizationTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ServingPortAuthorizationTypeOptions"}],"nullable":true,"type":"object"},"ServingPortAuthorizationTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ServingPortAccessAuthorizationTypeEnum"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"AutoScalingRules":{"properties":{"metricThresholdPercentage":{"$ref":"#/components/schemas/NumberRules"},"minReplicas":{"$ref":"#/components/schemas/IntegerRules"},"maxReplicas":{"$ref":"#/components/schemas/IntegerRules"},"initialReplicas":{"$ref":"#/components/schemas/IntegerRules"},"activationReplicas":{"$ref":"#/components/schemas/IntegerRules"},"metric":{"$ref":"#/components/schemas/AutoScalingMetricRules"},"metricThreshold":{"$ref":"#/components/schemas/IntegerRules"},"concurrencyHardLimit":{"$ref":"#/components/schemas/IntegerRules"},"scaleToZeroRetentionSeconds":{"$ref":"#/components/schemas/IntegerRules"},"scaleDownDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"initializationTimeoutSeconds":{"allOf":[{"$ref":"#/components/schemas/IntegerRules"}],"deprecated":true}},"nullable":true,"type":"object"},"AutoScalingMetricRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/AutoScalingMetricOptions"}],"nullable":true,"type":"object"},"AutoScalingMetricOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/AutoScalingMetric"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ServingConfigurationRules":{"properties":{"initializationTimeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"requestTimeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"}},"nullable":true,"type":"object"},"ImposedAssets":{"description":"a list of datasource assets to import into the policy. these datasources will be included in any workload that will be created in the scope of the policy.","type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"InferencePolicyV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyMeta"},"policy":{"$ref":"#/components/schemas/InferencePolicyDefaultsAndRulesV2"},"effective":{"$ref":"#/components/schemas/InferencePolicyDefaultsAndRulesV2"},"effectiveUpdatedAt":{"$ref":"#/components/schemas/Timestamp"}},"nullable":true,"type":"object"},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"Timestamp":{"description":"The time at which an event occurred. e.g. the time an effective policy has been updated","type":"string","minLength":1,"format":"date-time"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy/inferences":{"put":{"summary":"Overwrite an inference policy.","description":"Use to apply an inference policy for a given organizational unit.","operationId":"overwrite_inference_policy_v2","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/ValidateOnly"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferencePolicyOverwriteRequestV2"}}}},"responses":{"200":{"description":"Policy applied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferencePolicyV2"}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Delete an inference policy.

> Use to delete an inference policy for a given organizational unit.

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"PolicyScope":{"name":"scope","in":"query","required":true,"description":"The scope that the policy relates to.","schema":{"type":"string","enum":["tenant","cluster","department","project"]}},"FilterByDepartment":{"name":"departmentId","in":"query","description":"Filter using the department id.","required":false,"schema":{"type":"string"}},"FilterByProject":{"name":"projectId","in":"query","description":"project id to filter by","required":false,"schema":{"type":"string"}},"FilterByCluster":{"name":"clusterId","in":"query","description":"Filter using the Universally Unique Identifier (UUID) of the cluster.","required":false,"schema":{"type":"string","format":"uuid"}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404NotFound":{"description":"The specified resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}}},"paths":{"/api/v2/policy/inferences":{"delete":{"summary":"Delete an inference policy.","description":"Use to delete an inference policy for a given organizational unit.","operationId":"delete_inference_policy","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/PolicyScope"},{"$ref":"#/components/parameters/FilterByDepartment"},{"$ref":"#/components/parameters/FilterByProject"},{"$ref":"#/components/parameters/FilterByCluster"}],"responses":{"204":{"description":"The policy was deleted successfully."},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"404":{"$ref":"#/components/responses/404NotFound"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```

## Update an inference policy.

> Use to apply changes to inference policy for a given organizational unit.

```json
{"openapi":"3.0.3","info":{"title":"NVIDIA Run:ai","version":"2.22"},"tags":[{"name":"Policy","description":"Policies allow administrators to impose restrictions and set default values for researcher workloads. \nRestrictions and default values can be placed on CPUs, GPUs, and other resources or entities. \nFor more information, see [Policies](https://run-ai-docs.nvidia.com/self-hosted/2.22/platform-management/policies/#introduction).\n"}],"servers":[{"url":"https://app.run.ai"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication"}},"parameters":{"ValidateOnly":{"name":"validateOnly","in":"query","required":false,"description":"Validate the given policy payload without applying it","schema":{"type":"boolean"}}},"schemas":{"InferencePolicyChangeRequestV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyCreationFields"},"policy":{"$ref":"#/components/schemas/InferencePolicyDefaultsAndRulesV2"},"reset":{"$ref":"#/components/schemas/FieldsToReset"}},"type":"object"},"PolicyCreationFields":{"required":["name","scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"name":{"$ref":"#/components/schemas/PolicyName"}}},"ScopeType":{"type":"string","enum":["system","tenant","cluster","department","project"]},"ProjectIdOptional":{"description":"The id of the project.","type":"integer","format":"int32","nullable":true},"DepartmentIdOptional":{"description":"The id of the department.","type":"string","minLength":1,"nullable":true},"ClusterIdOptional":{"description":"The id of the cluster.","type":"string","format":"uuid","minLength":1,"nullable":true},"PolicyName":{"description":"A chosen name for the policy.","type":"string","minLength":1},"InferencePolicyDefaultsAndRulesV2":{"properties":{"defaults":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFields"},{"$ref":"#/components/schemas/NodeRelatedFlatFields"},{"$ref":"#/components/schemas/CommonItemizedDefaults"},{"$ref":"#/components/schemas/ConnectivityDefaults"},{"$ref":"#/components/schemas/ComputeDefaults"},{"$ref":"#/components/schemas/CommonStorageDefaults"},{"$ref":"#/components/schemas/CommonSecurity"},{"$ref":"#/components/schemas/InferenceFields"}],"nullable":true,"type":"object"},"rules":{"allOf":[{"$ref":"#/components/schemas/InferencePolicyRulesV2"}],"nullable":true,"type":"object"},"imposedAssets":{"$ref":"#/components/schemas/ImposedAssets"},"status":{"$ref":"#/components/schemas/PolicyValidationStatus"}},"nullable":true,"type":"object"},"CommonFlatFields":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridable"},{"$ref":"#/components/schemas/ContainerNonOverridable"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPod"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPG"}],"nullable":true,"type":"object"},"ContainerOverridable":{"description":"Container overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"command":{"description":"A command to the server as the entry point of the container running the workload.","type":"string","minLength":1,"nullable":true},"args":{"description":"Arguments to the command that the container running the workload executes.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ContainerNonOverridable":{"description":"Container non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"image":{"description":"Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a workload.","type":"string","minLength":1,"nullable":true},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicy"},"workingDir":{"description":"Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.","type":"string","minLength":1,"nullable":true},"createHomeDir":{"description":"When set to `true`, creates a home directory for the container.","type":"boolean","nullable":true},"probes":{"$ref":"#/components/schemas/Probes"}},"nullable":true,"type":"object"},"ImagePullPolicy":{"description":"Image pull policy. Defaults to `Always` if `:latest` tag is specified, otherwise it is `IfNotPresent`.","type":"string","minLength":1,"enum":["Always","Never","IfNotPresent"],"nullable":true},"Probes":{"description":"Probes are used to determine if the container is healthy and ready to accept traffic.","type":"object","properties":{"readiness":{"$ref":"#/components/schemas/Probe"}},"nullable":true},"Probe":{"type":"object","properties":{"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness or readiness probes are initiated.","type":"integer","format":"int32","minimum":0,"nullable":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe.","type":"integer","format":"int32","minimum":1,"nullable":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out.","type":"integer","format":"int32","minimum":1,"nullable":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed.","type":"integer","format":"int32","minimum":1,"nullable":true},"failureThreshold":{"description":"When a probe fails, the number of times to try before giving up.","type":"integer","format":"int32","minimum":1,"nullable":true},"handler":{"$ref":"#/components/schemas/ProbeHandler"}},"nullable":true},"ProbeHandler":{"description":"The action taken to determine the health of the container. (mandatory)","type":"object","properties":{"httpGet":{"description":"An action based on HTTP Get requests.","type":"object","properties":{"path":{"description":"Path to access on the HTTP server, defaults to /.","type":"string","pattern":"^(\\x2F[a-zA-Z0-9\\-_.\\x2F]*)?$","nullable":true},"port":{"description":"Number of the port to access on the container.","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"host":{"description":"Host name to connect to, defaults to the pod IP.","type":"string","format":"hostname","nullable":true},"scheme":{"$ref":"#/components/schemas/ProbeHandlerScheme"}}}},"nullable":true},"ProbeHandlerScheme":{"description":"Scheme to use for connecting to the host, defaults to HTTP.","type":"string","enum":["HTTP","HTTPS"],"nullable":true},"ResourcesFlatFieldsPerPod":{"description":"Resource parameters.","properties":{"nodeType":{"description":"Nodes (machines), or a group of nodes on which the workload will run. To use this feature, your Administrator will need to label nodes. For more information, see [Group Nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/researcher-setup/limit-to-node-group). When using this flag with with Project-based affinity, it refines the list of allowable node groups set in the Project. For more information, see [Projects](https://docshub.run.ai/guides/platform-management/aiinitiatives/organization/projects).","type":"string","minLength":1,"nullable":true},"nodeAffinityRequired":{"$ref":"#/components/schemas/NodeAffinityRequired"},"podAffinity":{"$ref":"#/components/schemas/PodAffinity"}},"nullable":true,"type":"object"},"NodeAffinityRequired":{"type":"object","description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","properties":{"nodeSelectorTerms":{"description":"A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/components/schemas/NodeSelectorTerm"}}},"nullable":true},"NodeSelectorTerm":{"type":"object","description":"A null or empty node selector term matches no objects. The requirements of them are ANDed.","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"$ref":"#/components/schemas/MatchExpression"}}},"nullable":true},"MatchExpression":{"type":"object","description":"A selector that contains values, a key, and an operator that relates the key and values.","properties":{"key":{"description":"The label key that the selector applies to (mandatory).","type":"string"},"operator":{"$ref":"#/components/schemas/MatchExpressionOperator"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.","type":"array","items":{"type":"string"}}},"required":["key","operator"],"nullable":true},"MatchExpressionOperator":{"description":"Represents a key's relationship to a set of values (mandatory).","type":"string","enum":["In","NotIn","Exists","DoesNotExist","Gt","Lt"]},"PodAffinity":{"description":"Pod affinity scheduling rules (e.g. co-locate this workload in the same node, zone, etc. as some other workloads).","type":"object","properties":{"type":{"$ref":"#/components/schemas/PodAffinityType"},"key":{"description":"The label key to use. (mandatory)","type":"string","nullable":true}},"nullable":true},"PodAffinityType":{"description":"The affinity type, required or preferred. (mandatory)","type":"string","enum":["Required","Preferred"],"nullable":true},"ResourcesFlatFieldsPerPG":{"description":"Resource parameters.","properties":{"category":{"$ref":"#/components/schemas/Category"},"priorityClass":{"$ref":"#/components/schemas/PriorityClass"}},"nullable":true,"type":"object"},"Category":{"description":"Specify the workload category assigned to the workload. Categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.","type":"string","nullable":true},"PriorityClass":{"description":"Specifies the priority class for the workload.  Valid values are: very-low, low, medium-low, medium, medium-high, high, very-high.  You can use this parameter to adjust the workload's scheduling behavior.  Each workload type has a default priority.  To view the default priority for each workload type, use the GET /workload-types endpoint.","type":"string","nullable":true},"NodeRelatedFlatFields":{"description":"Node related parameters.","properties":{"nodePools":{"description":"A prioritized list of node pools for the scheduler to run the workload on. The scheduler will always try to use the first node pool before moving to the next one if the first is not available.","type":"array","items":{"type":"string"},"nullable":true}},"nullable":true,"type":"object"},"CommonItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldDefaults"},{"$ref":"#/components/schemas/AdvancedItemizedDefaults"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldDefaults":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/EnvironmentVariablesDefaults"}},"nullable":true,"type":"object"},"EnvironmentVariablesDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/EnvironmentVariables"}},"nullable":true,"type":"object"},"EnvironmentVariables":{"description":"Set of environment variables to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"nullable":true},"EnvironmentVariable":{"description":"Details of an environment variable which is populated into the container.","properties":{"name":{"description":"The name of the environment variable. (mandatory)","type":"string","minLength":1,"nullable":true},"value":{"description":"The value of the environment variable. (mutually exclusive with secret, credential, configMap and podFieldRef)","type":"string","nullable":true},"secret":{"$ref":"#/components/schemas/EnvironmentVariableSecret"},"configMap":{"$ref":"#/components/schemas/EnvironmentVariableConfigMap"},"podFieldRef":{"$ref":"#/components/schemas/EnvironmentVariablePodFieldReference"},"exclude":{"description":"Use 'true' in case the environment variable is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true},"description":{"description":"Description of the environment variable.","type":"string","nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableSecret":{"description":"Details of the secret and key use to populate the environment variable","properties":{"name":{"description":"The name of the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariableConfigMap":{"description":"Details of the configMap and key use to populate the environment variable","properties":{"name":{"description":"The name of the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true},"key":{"description":"The key in the config-map resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"EnvironmentVariablePodFieldReference":{"description":"Details of the field-reference and key use to populate the environment variable","properties":{"path":{"description":"The field path resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"AdvancedItemizedDefaults":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldDefaults"},{"$ref":"#/components/schemas/LabelsFieldDefaults"},{"$ref":"#/components/schemas/ImagePullSecretsFieldDefaults"},{"$ref":"#/components/schemas/TolerationsFieldDefaults"}],"type":"object","nullable":true},"AnnotationsFieldDefaults":{"properties":{"annotations":{"$ref":"#/components/schemas/AnnotationsDefaults"}},"nullable":true,"type":"object"},"AnnotationsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Annotations"}},"nullable":true,"type":"object"},"Annotations":{"description":"Set of annotations to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Annotation"},"nullable":true},"Annotation":{"description":"Annotation details to be populated into the container.","properties":{"name":{"description":"The name of the annotation (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the annotation.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the annotation is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"LabelsFieldDefaults":{"properties":{"labels":{"$ref":"#/components/schemas/LabelsDefaults"}},"nullable":true,"type":"object"},"LabelsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/Labels"}},"nullable":true,"type":"object"},"Labels":{"description":"Set of labels to populate into the container running the workload.","type":"array","items":{"$ref":"#/components/schemas/Label"},"nullable":true},"Label":{"description":"Label details to be populated into the container.","properties":{"name":{"description":"The name of the label (mandatory)","type":"string","minLength":1,"maxLength":63,"nullable":true},"value":{"description":"The value of the label.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ImagePullSecretsFieldDefaults":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsDefaults"}},"nullable":true,"type":"object"},"ImagePullSecretsDefaults":{"properties":{"instances":{"$ref":"#/components/schemas/ImagePullSecrets"}},"nullable":true,"type":"object"},"ImagePullSecrets":{"description":"A list of references to Kubernetes secrets in the same namespace used for pulling container images.","type":"array","items":{"$ref":"#/components/schemas/ImagePullSecret"},"nullable":true},"ImagePullSecret":{"description":"A reference to a secret in the same namespace used to pull container images.","properties":{"name":{"type":"string","description":"The name of the Kubernetes secret containing the image pull credentials."},"userCredential":{"type":"boolean","description":"Indicates whether the secret is a user credential. Set to true if the secret was created by the user and is only accessible by them.","nullable":true},"exclude":{"description":"Use 'true' in case the secret is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"TolerationsFieldDefaults":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsDefaults"}},"nullable":true,"type":"object"},"TolerationsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Toleration"},"instances":{"$ref":"#/components/schemas/Tolerations"}},"nullable":true,"type":"object"},"Toleration":{"description":"Toleration details.","properties":{"name":{"description":"The name of the toleration.","type":"string","minLength":1,"nullable":true},"operator":{"$ref":"#/components/schemas/TolerationOperator"},"key":{"description":"The taint key that the toleration applies to. (mandatory)","type":"string","nullable":true},"value":{"description":"The taint value the toleration matches to. Mandatory if operator is Exists, forbidden otherwise.","type":"string","nullable":true},"effect":{"$ref":"#/components/schemas/TolerationEffect"},"seconds":{"description":"The period of time the toleration tolerates the taint. Valid only if effect is NoExecute. taint.","type":"integer","minimum":1,"nullable":true},"exclude":{"description":"Use 'true' in case the label is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"TolerationOperator":{"description":"A key's relationship to the value. Equal uses key and value. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. (mandatory)","type":"string","enum":["Equal","Exists"],"nullable":true},"TolerationEffect":{"description":"The taint effect to match. (mandatory)","type":"string","enum":["NoSchedule","NoExecute","PreferNoSchedule","Any"],"nullable":true},"Tolerations":{"description":"Set of tolerations to apply to the workload.","type":"array","items":{"$ref":"#/components/schemas/Toleration"},"nullable":true},"ConnectivityDefaults":{"properties":{"ports":{"$ref":"#/components/schemas/PortsDefaults"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsDefaults"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsDefaults"}},"nullable":true,"type":"object"},"PortsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/Port"},"instances":{"$ref":"#/components/schemas/Ports"}},"nullable":true,"type":"object"},"Port":{"description":"A port for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"serviceType":{"$ref":"#/components/schemas/PortServiceType"},"external":{"description":"The external port which allows a connection to the container port. If not specified, the port will be auto-generated by the system..","type":"integer","format":"int32","nullable":true},"toolType":{"description":"The tool type that runs on this port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this port.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PortServiceType":{"description":"The service type of the port (mandatory).","type":"string","enum":["LoadBalancer","NodePort","ClusterIP"],"nullable":true},"Ports":{"description":"Set of container ports that the workload exposes.","type":"array","items":{"$ref":"#/components/schemas/Port"},"nullable":true},"ExposedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrl"},"instances":{"$ref":"#/components/schemas/ExposedUrls"}},"nullable":true,"type":"object"},"ExposedUrl":{"description":"A URL for accessing the workload.","properties":{"container":{"description":"The port that the container running the workload exposes. (mandatory)","type":"integer","format":"int32","nullable":true},"url":{"description":"The URL for connecting to the container port. If not specified, the URL will be auto-generated by the system..","type":"string","nullable":true},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"toolType":{"description":"The tool type that runs on this container port.","type":"string","nullable":true},"toolName":{"description":"A name describing the tool that runs on this url.","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the instance is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExposedUrls":{"description":"Set of container ports that the workload exposes via URLs.","type":"array","items":{"$ref":"#/components/schemas/ExposedUrl"},"nullable":true},"RelatedUrlsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrl"},"instances":{"$ref":"#/components/schemas/RelatedUrls"}},"nullable":true,"type":"object"},"RelatedUrl":{"description":"A URL that is related to the workload. For example, a URL to an external server providing statistics or logging about the workload.","properties":{"url":{"description":"The URL for connecting an external service related to the workload. (mandatory)","type":"string","nullable":true},"type":{"description":"The type of service that the url provides. For example, wandb (Weights & Biases). (mandatory)","type":"string","nullable":true},"name":{"description":"Unique name to identify the instance. primarily used for policy locked rules.","type":"string","nullable":true},"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"RelatedUrls":{"description":"Set of URLs that are related to the workload.","type":"array","items":{"$ref":"#/components/schemas/RelatedUrl"},"nullable":true},"ComputeDefaults":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsDefaults"}},"nullable":true,"type":"object"},"ComputeFieldsDefaults":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFields"},{"$ref":"#/components/schemas/ComputeItemizedFieldsDefaults"}],"nullable":true,"type":"object"},"ComputeFlatFields":{"properties":{"gpuDevicesRequest":{"description":"Requested number of GPU devices. Currently if more than one device is requested, it is not possible to provide values for gpuMemory, gpuPortion or migProfile [deprecated].","type":"integer","format":"int32","nullable":true,"minimum":0},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestType"},"gpuPortionRequest":{"description":"Required if and only if gpuRequestType is portion. States the portion of the GPU to allocate for the created workload, per GPU device, between 0 and 1. The default is no allocated GPUs.","type":"number","format":"double","nullable":true,"minimum":0},"gpuPortionLimit":{"description":"Limitations on the portion consumed by the workload, per GPU device. The system guarantees The gpuPotionLimit must be no less than the gpuPortionRequest.","type":"number","format":"double","nullable":true,"minimum":0},"gpuMemoryRequest":{"description":"Required if and only if gpuRequestType is memory. States the GPU memory to allocate for the created workload, per GPU device. Note that the workload will not be scheduled unless the system can guarantee this amount of GPU memory to the workload.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"gpuMemoryLimit":{"description":"Limitation on the memory consumed by the workload, per GPU device. The system guarantees The gpuMemoryLimit must be no less than gpuMemoryRequest.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"migProfile":{"$ref":"#/components/schemas/MigProfile","depracted":true},"cpuCoreRequest":{"description":"CPU units to allocate for the created workload (0.5, 1, .etc). The workload will receive at least this amount of CPU. Note that the workload will not be scheduled unless the system can guarantee this amount of CPUs to the workload.","format":"double","type":"number","nullable":true,"minimum":0},"cpuCoreLimit":{"description":"Limitations on the number of CPUs consumed by the workload (0.5, 1, .etc). The system guarantees that this workload will not be able to consume more than this amount of CPUs.","format":"double","type":"number","nullable":true,"minimum":0},"cpuMemoryRequest":{"description":"The amount of CPU memory to allocate for this workload (1G, 20M, .etc). The workload will receive at least this amount of memory. Note that the workload will not be scheduled unless the system can guarantee this amount of memory to the workload","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"cpuMemoryLimit":{"description":"Limitations on the CPU memory to allocate for this workload (1G, 20M, .etc). The system guarantees that this workload will not be able to consume more than this amount of memory. The workload will receive an error when trying to allocate more memory than this limit.","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"largeShmRequest":{"description":"A large /dev/shm device to mount into a container running the created workload. An shm is a shared file system mounted on RAM.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"GpuRequestType":{"description":"Sets the unit type for GPU resources requests. Stated in terms of portion, memory or  mig profile [deprecated]. Sets the unit type for other GPU request fields. If `gpuDevicesRequest > 1`, only `portion` is supported. If `gpuDeviceRequest = 1`, the request type can be stated as `portion`, `memory` or `migProfile` [deprecated].","type":"string","minLength":1,"enum":["portion","memory","migProfile"],"nullable":true},"MigProfile":{"description":"Required only if `gpuRequestType` is `migProfile`. This states the memory profile to be used for the workload running NVIDIA Multi-Instance GPU (MIG) technology.","type":"string","deprecated":true,"minLength":1,"enum":["1g.5gb","1g.10gb","2g.10gb","2g.20gb","3g.20gb","3g.40gb","4g.20gb","4g.40gb","7g.40gb","7g.80gb"],"nullable":true},"ComputeItemizedFieldsDefaults":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesDefaults"}},"nullable":true,"type":"object"},"ExtendedResourcesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResource"},"instances":{"$ref":"#/components/schemas/ExtendedResources"}},"nullable":true,"type":"object"},"ExtendedResource":{"description":"Quantity of an extended resource.","properties":{"resource":{"description":"The name of the extended resource (mandatory)","type":"string","minLength":1,"nullable":true},"quantity":{"description":"The requested quantity for the resource.","type":"string","minLength":1,"nullable":true},"exclude":{"description":"Use 'true' in case the extended resource is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ExtendedResources":{"description":"Extended resources and their quantity.","type":"array","items":{"$ref":"#/components/schemas/ExtendedResource"},"nullable":true},"CommonStorageDefaults":{"properties":{"storage":{"$ref":"#/components/schemas/CommonStorageFieldsDefaults"}},"nullable":true,"type":"object"},"CommonStorageFieldsDefaults":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesDefaults"},"pvc":{"$ref":"#/components/schemas/PvcsDefaults"},"hostPath":{"$ref":"#/components/schemas/HostPathsDefaults"},"nfs":{"$ref":"#/components/schemas/NfssDefaults"},"git":{"$ref":"#/components/schemas/GitsDefaults"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsDefaults"},"secretVolume":{"$ref":"#/components/schemas/SecretsDefaults"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsDefaults"}},"nullable":true,"type":"object"},"DataVolumesDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeInstance"},"instances":{"$ref":"#/components/schemas/DataVolumeItems"}},"nullable":true,"type":"object"},"DataVolumeInstance":{"allOf":[{"$ref":"#/components/schemas/DataVolume"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"DataVolume":{"properties":{"id":{"description":"The unique identifier of the data volume. (mandatory)","type":"string","format":"uuid","nullable":true},"mountPath":{"description":"The path where the data volume will be mounted. (mandatory)","type":"string","nullable":true}},"nullable":true,"type":"object"},"ExcludeField":{"properties":{"exclude":{"description":"Use 'true' in case the item is defined in defaults of the policy, and you wish to exclude it from the workload.","type":"boolean","default":false,"nullable":true}},"type":"object","nullable":true},"DataVolumeItems":{"description":"Set of data volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/DataVolumeInstance"},"nullable":true},"PvcsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcInstance"},"instances":{"$ref":"#/components/schemas/PvcItems"}},"nullable":true,"type":"object"},"PvcInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Pvc"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"StorageInstanceName":{"properties":{"name":{"description":"unique name to identify the instance. primarily used for policy locked rules.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"Pvc":{"allOf":[{"$ref":"#/components/schemas/PvcFieldsUpdatable"},{"$ref":"#/components/schemas/PvcFieldsNonUpdatable"}]},"PvcFieldsUpdatable":{"properties":{"path":{"description":"Local path within the workload to which the PVC bucket will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"PvcFieldsNonUpdatable":{"properties":{"existingPvc":{"description":"Verify existing PVC. PVC is assumed to exist when set to `true`. If set to `false`, the PVC will be created, if it does not exist.","type":"boolean","default":false,"nullable":true},"claimName":{"description":"Name for the PVC. Allow referencing it across workloads. If not provided, a name based on the workload name and scope will be auto-generated.","type":"string","minLength":1,"maxLength":63,"nullable":true},"readOnly":{"description":"Permit only read access to PVC.","type":"boolean","default":false,"nullable":true},"ephemeral":{"description":"Use `true` to set PVC to ephemeral. If set to `true`, the PVC will be deleted when the workload is stopped. Not supported for inference workloads.","type":"boolean","default":false,"nullable":true},"claimInfo":{"$ref":"#/components/schemas/ClaimInfo"},"dataSharing":{"description":"use `true` to share the PVC data to all projects under the selected scope.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"ClaimInfo":{"description":"Claim information for the newly created PVC. The information should not be provided when attempting to use existing PVC.","properties":{"size":{"$ref":"#/components/schemas/PvcClaimSize"},"storageClass":{"description":"Storage class name to associate with the PVC. This parameter may be omitted if there is a single storage class in the system, or you are using the default storage class. For more information, see [Storage class](https://kubernetes.io/docs/concepts/storage/storage-classes).","type":"string","minLength":1,"nullable":true},"accessModes":{"$ref":"#/components/schemas/PvcAccessModes"},"volumeMode":{"$ref":"#/components/schemas/PvcVolumeMode"},"addedAttrValues":{"$ref":"#/components/schemas/PvcAddedAttrValues"}},"nullable":true,"type":"object"},"PvcClaimSize":{"description":"Requested size for the PVC. Mandatory when existingPvc is false. Recommended sizes: TB/GB/MB/TIB/GIB/MIB","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true},"PvcAccessModes":{"description":"Requested access mode(s) for the newly created PVC.","properties":{"readWriteOnce":{"description":"Requesting claim that can be mounted in read/write mode to exactly one host. This is the default access mode.","type":"boolean","default":true,"nullable":true},"readOnlyMany":{"description":"Requesting claim that can be mounted in read-only mode to many hosts.","type":"boolean","default":false,"nullable":true},"readWriteMany":{"description":"Requesting claim that can be mounted in read/write mode to many hosts.","type":"boolean","default":false,"nullable":true}},"nullable":true,"type":"object"},"PvcVolumeMode":{"description":"The volume mode required by the claim. Choose Filesystem (default) or Block.","type":"string","enum":["Filesystem","Block"],"nullable":true},"PvcAddedAttrValues":{"description":"an optional array of key-values pairs that are written as annotations on the created PVC. the allowed attributes are determined according to the storage class configuration (see k8s-objects-tracker for further info).","type":"array","items":{"$ref":"#/components/schemas/PvcAddedAttrValue"}},"PvcAddedAttrValue":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":63,"pattern":"^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$"},"value":{"type":"string"}}},"PvcItems":{"description":"Set of pvc persistent volume claims to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/PvcInstance"},"nullable":true},"HostPathsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathInstance"},"instances":{"$ref":"#/components/schemas/HostPathItems"}},"nullable":true,"type":"object"},"HostPathInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/HostPath"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"HostPath":{"properties":{"path":{"description":"Local path within the controller to which the host volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","default":true,"nullable":true},"mountPath":{"description":"The path that the host volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagation"}},"nullable":true,"type":"object"},"HostPathMountPropagation":{"description":"Share this volumes mount with other containers. If set to HostToContainer, this volume mount will receive all subsequent mounts that are mounted to this volume or any of its subdirectories. In case of multiple hostPath entries, this field should have the same value for all of them.","type":"string","enum":["None","HostToContainer"],"nullable":true},"HostPathItems":{"description":"Set of host paths to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/HostPathInstance"},"nullable":true},"NfssDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsInstance"},"instances":{"$ref":"#/components/schemas/NfsItems"}},"nullable":true,"type":"object"},"NfsInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Nfs"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Nfs":{"properties":{"path":{"description":"Path that is exported by the NFS server (mandatory). For more information, see [NFS](https://kubernetes.io/docs/concepts/storage/volumes#nfs).","type":"string","minLength":1,"nullable":true},"readOnly":{"description":"Force the NFS export to be mounted with read-only permissions.","type":"boolean","default":true,"nullable":true},"server":{"description":"The hostname or IP address of the NFS server. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"The path that the NFS volume will be mounted to when in use. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"NfsItems":{"description":"Set of nfs volumes to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/NfsInstance"},"nullable":true},"GitsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/GitInstance"},"instances":{"$ref":"#/components/schemas/GitItems"}},"nullable":true,"type":"object"},"GitInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/GitCommon"},{"$ref":"#/components/schemas/GitPassword"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"GitCommon":{"properties":{"repository":{"description":"URL to a remote Git repository. The content of this repository will be mapped to the container running the workload. (mandatory)","type":"string","minLength":1,"nullable":true},"branch":{"description":"Specific branch to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"revision":{"description":"Specific revision to synchronize the repository from.","type":"string","minLength":1,"nullable":true},"path":{"description":"Local path within the workload to which the Git repository will be mapped (mandatory).","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitPassword":{"properties":{"passwordSecret":{"description":"Secret containing the credentials of the repository (needed for non public repository which requires authentication).","type":"string","minLength":1,"nullable":true},"secretKeyOfUser":{"description":"The key to use for loading the user name from the secret. The default is `User`.","type":"string","minLength":1,"nullable":true},"secretKeyOfPassword":{"description":"The key to use for loading the password from the secret. The default is `Password`.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"GitItems":{"description":"Set of git repositories to use in the workload.","type":"array","items":{"$ref":"#/components/schemas/GitInstance"},"nullable":true},"ConfigMapsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapInstance"},"instances":{"$ref":"#/components/schemas/ConfigMapField"}},"nullable":true,"type":"object"},"ConfigMapInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/ConfigMap"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"ConfigMap":{"properties":{"configMap":{"description":"The name of the ConfigMap resource. (mandatory)","type":"string","minLength":1,"nullable":true},"mountPath":{"description":"Local path within the workload to which the ConfigMap will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted.","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"ConfigMapField":{"description":"Set of config map volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/ConfigMapInstance"},"nullable":true},"SecretsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretInstance2"},"instances":{"$ref":"#/components/schemas/SecretItems1"}},"nullable":true,"type":"object"},"SecretInstance2":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/Secret5"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"Secret5":{"allOf":[{"$ref":"#/components/schemas/SecretFieldsUpdatable"},{"$ref":"#/components/schemas/SecretFieldsNonUpdatable"}]},"SecretFieldsUpdatable":{"properties":{"mountPath":{"description":"Local path within the workload to which the Secret will be mapped to. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretFieldsNonUpdatable":{"properties":{"secret":{"description":"The name of the Secret resource. (mandatory)","type":"string","minLength":1,"nullable":true}},"nullable":true,"type":"object"},"SecretItems1":{"description":"Set of secret volumes to use in the workload","type":"array","items":{"$ref":"#/components/schemas/SecretInstance2"},"nullable":true},"EmptyDirsDefaults":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirInstance"},"instances":{"$ref":"#/components/schemas/EmptyDirItems"}},"nullable":true,"type":"object"},"EmptyDirInstance":{"allOf":[{"$ref":"#/components/schemas/StorageInstanceName"},{"$ref":"#/components/schemas/EmptyDir"},{"$ref":"#/components/schemas/ExcludeField"}],"nullable":true,"type":"object"},"EmptyDir":{"properties":{"path":{"description":"Local path within the workload to which the EmptyDir volume will be mapped. (mandatory)","type":"string","minLength":1,"nullable":true},"medium":{"description":"The type of storage medium for the volume. Use \"Memory\" for memory-backed storage, or leave empty for disk-backed storage.","type":"string","minLength":1,"nullable":true},"sizeLimit":{"description":"The total amount of local storage or memory required for the emptyDir volume. Specify using Kubernetes quantity format (e.g., 1G, 500Mi).","type":"string","pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$","nullable":true}},"nullable":true,"type":"object"},"EmptyDirItems":{"description":"A list of emptyDir volumes to mount in the workload.","type":"array","items":{"$ref":"#/components/schemas/EmptyDirInstance"},"nullable":true},"CommonSecurity":{"properties":{"security":{"$ref":"#/components/schemas/CommonSecurityFlatFields"}},"nullable":true,"type":"object"},"CommonSecurityFlatFields":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridable"},{"$ref":"#/components/schemas/CommonSecurityOverridable"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridable":{"description":"Security non overrideable fields. In the context of assets,these are environment asset fields that cannot be overriden in the submit workload request.","properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSource"},"capabilities":{"description":"Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.","type":"array","items":{"$ref":"#/components/schemas/Capability"},"nullable":true},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileType"},"runAsNonRoot":{"description":"Force the container to run as a non-root user.","type":"boolean","nullable":true},"readOnlyRootFilesystem":{"description":"If true, mounts the container's root filesystem as read-only.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"UidGidSource":{"description":"Indicate the way to determine the user and group ids of the container. The options are a. `fromTheImage` - user and group ids are determined by the docker image that the container runs. this is the default option. b. `custom` - user and group ids can be specified in the environment asset and/or the workload creation request. c. `idpToken` - user and group ids are determined according to the identity provider (idp) access token. This option is intended for internal use of the environment UI form. For more information, see [User Identity](https://run-ai-docs.nvidia.com/self-hosted/2.22/admin/runai-setup/config/non-root-containers/).","type":"string","enum":["fromTheImage","fromIdpToken","custom"],"nullable":true},"Capability":{"type":"string","enum":["AUDIT_CONTROL","AUDIT_READ","AUDIT_WRITE","BLOCK_SUSPEND","CHOWN","DAC_OVERRIDE","DAC_READ_SEARCH","FOWNER","FSETID","IPC_LOCK","IPC_OWNER","KILL","LEASE","LINUX_IMMUTABLE","MAC_ADMIN","MAC_OVERRIDE","MKNOD","NET_ADMIN","NET_BIND_SERVICE","NET_BROADCAST","NET_RAW","SETGID","SETFCAP","SETPCAP","SETUID","SYS_ADMIN","SYS_BOOT","SYS_CHROOT","SYS_MODULE","SYS_NICE","SYS_PACCT","SYS_PTRACE","SYS_RAWIO","SYS_RESOURCE","SYS_TIME","SYS_TTY_CONFIG","SYSLOG","WAKE_ALARM"]},"SeccompProfileType":{"description":"Indicates which kind of seccomp profile will be applied to the container. The options are a. `RuntimeDefault` - the container runtime default profile should be used. b. `Unconfined` - no profile should be applied. c. `Localhost` is not yet supported by Run:ai.","type":"string","enum":["RuntimeDefault","Unconfined","Localhost"],"nullable":true},"CommonSecurityOverridable":{"description":"Security overrideable fields. In the context of assets,these are environment asset fields that can be overriden in the submit workload request.","properties":{"runAsUid":{"description":"The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsUid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"runAsGid":{"description":"The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset `runAsGid` field (optional). Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled.","type":"integer","format":"int64","nullable":true},"supplementalGroups":{"description":"Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid of the environment asset is not `fromTheImage`, and `overrideUidGidInWorkspace` is enabled. Using an empty string implies reverting the supplementary groups of the image.","type":"string","nullable":true}},"nullable":true,"type":"object"},"InferenceFields":{"properties":{"servingPort":{"$ref":"#/components/schemas/ServingPort"},"autoscaling":{"$ref":"#/components/schemas/AutoScaling"},"servingConfiguration":{"$ref":"#/components/schemas/ServingConfiguration"}},"nullable":true,"type":"object"},"ServingPort":{"description":"A port for accessing the inference service","allOf":[{"$ref":"#/components/schemas/ServingPortContainerAndProtocol"},{"$ref":"#/components/schemas/ServingPortAccess"}],"nullable":true,"type":"object"},"ServingPortContainerAndProtocol":{"properties":{"container":{"description":"The port that the container running the inference service exposes (mandatory).","type":"integer","format":"int32","minimum":1,"maximum":65535,"nullable":true},"protocol":{"$ref":"#/components/schemas/ServingPortProtocol"}}},"ServingPortProtocol":{"description":"The protocol used by the port, defaults to http","type":"string","enum":["http","grpc"],"nullable":true},"ServingPortAccess":{"properties":{"authorizationType":{"$ref":"#/components/schemas/ServingPortAccessAuthorizationTypeEnum"},"authorizedUsers":{"description":"List of users that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"authorizedGroups":{"description":"List of groups that are allowed to access the URL. Note that authorizedUsers and authorizedGroups are mutually exclusive.","type":"array","items":{"type":"string"},"nullable":true},"clusterLocalAccessOnly":{"description":"Configure the serving port URL to be available only on the cluster-local network, and not externally. Defaults to false","type":"boolean","nullable":true}}},"ServingPortAccessAuthorizationTypeEnum":{"type":"string","enum":["public","authenticatedUsers","authorizedUsersOrGroups"],"description":"The authorization type for serving port URL access. Defaults to public, which means no authorization is required. If set to authenticatedUsers, only authenticated Run:ai users are allowed to access the URL. If set to authorizedUsersOrGroups, only users or groups specified in authorizedUsers or authorizedGroups are allowed to access the URL. Supported from cluster version 2.19.","nullable":true},"AutoScaling":{"allOf":[{"$ref":"#/components/schemas/AutoScalingCommonFields"},{"$ref":"#/components/schemas/AutoScalingMetricFields"}],"nullable":true,"type":"object"},"AutoScalingCommonFields":{"description":"Auto scaling common fields","properties":{"metricThresholdPercentage":{"description":"The percentage of metric threshold value to use for autoscaling. Defaults to 70. Applicable only with the 'throughput' and 'concurrency' metrics","type":"number","format":"float","minimum":1,"maximum":100,"nullable":true},"minReplicas":{"description":"The minimum number of replicas for autoscaling. Defaults to 1. Use 0 to allow scale-to-zero","type":"integer","format":"int32","minimum":0,"nullable":true},"maxReplicas":{"description":"The maximum number of replicas for autoscaling. Defaults to minReplicas, or to 1 if minReplicas is set to 0","type":"integer","format":"int32","minimum":1,"nullable":true},"initialReplicas":{"description":"The number of replicas to run when initializing the workload for the first time. Defaults to minReplicas, or to 1 if minReplicas is set to 0","type":"integer","format":"int32","minimum":0,"nullable":true},"activationReplicas":{"description":"The number of replicas to run when scaling-up from zero. Defaults to minReplicas, or to 1 if minReplicas is set to 0","type":"integer","format":"int32","minimum":1,"nullable":true},"concurrencyHardLimit":{"description":"The maximum number of requests allowed to flow to a single replica at any time. 0 means no limit","type":"integer","format":"int32","minimum":0,"nullable":true},"scaleToZeroRetentionSeconds":{"description":"The minimum amount of time (in seconds) that the last replica will remain active after a scale-to-zero decision. Defaults to 0. Available only if minReplicas is set to 0","type":"integer","format":"int32","minimum":0,"maximum":3600,"nullable":true},"scaleDownDelaySeconds":{"description":"The minimum amount of time (in seconds) that a replica will remain active after a scale-down decision","type":"integer","format":"int32","minimum":0,"maximum":3600,"nullable":true},"initializationTimeoutSeconds":{"description":"Use `servingConfiguration.initializationTimeoutSeconds` instead.  If this field is set, it will be ignored and the value under `servingConfiguration` will be used. The maximum amount of time (in seconds) to wait for the container to become ready.","type":"integer","format":"int32","minimum":1,"nullable":true,"deprecated":true}},"nullable":true,"type":"object"},"AutoScalingMetricFields":{"description":"Auto scaling metric fields","properties":{"metric":{"$ref":"#/components/schemas/AutoScalingMetric"},"metricThreshold":{"description":"The threshold to use with the specified metric for autoscaling. Mandatory if metric is specified","type":"integer","format":"int32","nullable":true}},"nullable":true,"type":"object"},"AutoScalingMetric":{"description":"The metric to use for autoscaling. Mandatory if minReplicas < maxReplicas, except for the special case where minReplicas is set to 0 and maxReplicas is set to 1, as in this case autoscaling decisions are made according to network activity rather than metrics. Use one of the built-in metrics of 'throughput', 'concurrency' or 'latency', or any other available custom metric. Only the 'throughput' and 'concurrency' metrics support scale-to-zero","type":"string","pattern":"^[a-zA-Z_:][a-zA-Z0-9_:]*$","nullable":true},"ServingConfiguration":{"description":"The inference workload serving configuration.","properties":{"initializationTimeoutSeconds":{"description":"The maximum time (in seconds) allowed for a workload to initialize and become ready. If the workload does not start within this time, it will be moved to failed state.","type":"integer","format":"int32","minimum":1,"nullable":true},"requestTimeoutSeconds":{"description":"The maximum time (in seconds) allowed to process an end-user request. If no response is returned within this time, the request will be ignored.Supported from Cluster version 2.22","type":"integer","format":"int32","minimum":1,"nullable":true}},"nullable":true,"type":"object"},"InferencePolicyRulesV2":{"allOf":[{"$ref":"#/components/schemas/CommonFlatFieldsRules"},{"$ref":"#/components/schemas/NodeRelatedFlatFieldsRules"},{"$ref":"#/components/schemas/CommonItemizedFieldsRules"},{"$ref":"#/components/schemas/ConnectivityRules"},{"$ref":"#/components/schemas/ComputeRules"},{"$ref":"#/components/schemas/InferenceSecurityRules"},{"$ref":"#/components/schemas/CommonStorageRules"},{"$ref":"#/components/schemas/InferenceFieldsRules"}]},"CommonFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ContainerOverridableRules"},{"$ref":"#/components/schemas/ContainerNonOverridableRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPodRules"},{"$ref":"#/components/schemas/ResourcesFlatFieldsPerPGRules"}],"nullable":true,"type":"object"},"ContainerOverridableRules":{"description":"Container related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"command":{"$ref":"#/components/schemas/StringRules"},"args":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"StringRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/StringRulesOptions"}],"nullable":true,"type":"object"},"StringRulesCommon":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true}}},"SourceOfRule":{"description":"This field is used by the system along with effective rules, in order to specify the org unit from which this effective rule has been derived. It should be left empty when sending apply policy requests.","required":["scope"],"properties":{"scope":{"$ref":"#/components/schemas/ScopeType"},"projectId":{"$ref":"#/components/schemas/ProjectIdOptional"},"departmentId":{"$ref":"#/components/schemas/DepartmentIdOptional"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"isFallback":{"description":"source of this rule is the fallback policy","type":"boolean"}},"nullable":true,"type":"object"},"StringRulesOptions":{"properties":{"options":{"description":"Set of options that the value of the field must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"},"nullable":true}}},"StringOption":{"description":"One of the values that the field can be assigned to, when options police is applied on the field.","required":["value"],"properties":{"value":{"description":"The value that the field should hold","type":"string"},"displayed":{"description":"Textual description of the value. to be used by user interface applications.","type":"string","nullable":true}}},"ContainerNonOverridableRules":{"properties":{"image":{"$ref":"#/components/schemas/StringRules"},"imagePullPolicy":{"$ref":"#/components/schemas/ImagePullPolicyRules"},"workingDir":{"$ref":"#/components/schemas/StringRules"},"createHomeDir":{"$ref":"#/components/schemas/BooleanRules"},"probes":{"$ref":"#/components/schemas/ProbesRules"}},"nullable":true,"type":"object"},"ImagePullPolicyRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ImagePullPolicyOptions"}],"nullable":true,"type":"object"},"ImagePullPolicyOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ImagePullPolicy"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"BooleanRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"ProbesRules":{"properties":{"readiness":{"$ref":"#/components/schemas/ProbeRules"}},"nullable":true,"type":"object"},"ProbeRules":{"properties":{"initialDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"periodSeconds":{"$ref":"#/components/schemas/IntegerRules"},"timeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"successThreshold":{"$ref":"#/components/schemas/IntegerRules"},"failureThreshold":{"$ref":"#/components/schemas/IntegerRules"},"handler":{"$ref":"#/components/schemas/ProbeHandlerRules"}},"nullable":true,"type":"object"},"IntegerRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"DefaultFromRule":{"properties":{"field":{"description":"The default of this field is taken from another field, with optional factor. The specified field must belong to the same workload section (compute, security, etc). For itemized field, the value of the field will be taken from the same instance.","type":"string","nullable":true},"factor":{"description":"Multiple the value of the fromField by this factor to get the value for this field For example, if factor is 2 and defaultFrom field has value of 8, the calculated default will be determined to be 16.","type":"number","format":"double","nullable":true,"default":1}},"nullable":true,"type":"object"},"ProbeHandlerRules":{"properties":{"httpGet":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"port":{"$ref":"#/components/schemas/IntegerRules"},"host":{"$ref":"#/components/schemas/StringRules"},"scheme":{"$ref":"#/components/schemas/StringRules"}}}},"nullable":true,"type":"object"},"ResourcesFlatFieldsPerPodRules":{"description":"Resource related parameters.","properties":{"nodeType":{"$ref":"#/components/schemas/StringRules"},"nodeAffinityRequired":{"$ref":"#/components/schemas/ArbitraryRules"},"podAffinity":{"$ref":"#/components/schemas/PodAffinityRules"}},"nullable":true,"type":"object"},"ArbitraryRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this arbitrary object is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"PodAffinityRules":{"properties":{"type":{"$ref":"#/components/schemas/PodAffinityTypeRules"},"key":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PodAffinityTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PodAffinityTypeOptions"}],"nullable":true,"type":"object"},"PodAffinityTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PodAffinityType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"type":"object"},"ResourcesFlatFieldsPerPGRules":{"description":"Resource related parameters.","properties":{"category":{"$ref":"#/components/schemas/StringRules"},"priorityClass":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"NodeRelatedFlatFieldsRules":{"description":"Node pools related parameters.","properties":{"nodePools":{"$ref":"#/components/schemas/ArrayRules"}},"nullable":true,"type":"object"},"ArrayRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether this array is mandatory. Mandatory array must include at least one item. default to false.","type":"boolean","nullable":true},"options":{"description":"Set of options that the value of each item of the array must be chosen from.","type":"array","items":{"$ref":"#/components/schemas/StringOption"}},"canEdit":{"description":"Whether the value of the array, as a whole, is editable. default to false.","type":"boolean","nullable":true}},"nullable":true,"type":"object"},"CommonItemizedFieldsRules":{"allOf":[{"$ref":"#/components/schemas/EnvironmentVariablesFieldRules"},{"$ref":"#/components/schemas/AdvancedItemizedRules"}],"nullable":true,"type":"object"},"EnvironmentVariablesFieldRules":{"properties":{"environmentVariables":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"InstancesRules":{"properties":{"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ItemRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canAdd":{"description":"Whether it is permitted to add items. Default to true.","type":"boolean","nullable":true},"locked":{"description":"Set of keys for items that are \"locked\", i.e. cannot be removed or deleted.","type":"array","items":{"type":"string"}}},"nullable":true,"type":"object"},"AdvancedItemizedRules":{"allOf":[{"$ref":"#/components/schemas/AnnotationsFieldRules"},{"$ref":"#/components/schemas/LabelsFieldRules"},{"$ref":"#/components/schemas/ImagePullSecretsFieldRules"},{"$ref":"#/components/schemas/TolerationsFieldRules"}],"type":"object","nullable":true},"AnnotationsFieldRules":{"properties":{"annotations":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"LabelsFieldRules":{"properties":{"labels":{"$ref":"#/components/schemas/InstancesRules"}},"nullable":true,"type":"object"},"ImagePullSecretsFieldRules":{"properties":{"imagePullSecrets":{"$ref":"#/components/schemas/ImagePullSecretsRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ImagePullSecretsRulesAttributes"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ImagePullSecretsRulesAttributes":{"description":"Rules for the attributes of imagePullSecrets","properties":{"name":{"$ref":"#/components/schemas/StringRules"},"userCredentials":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationsFieldRules":{"properties":{"tolerations":{"$ref":"#/components/schemas/TolerationsRules"}},"nullable":true,"type":"object"},"TolerationsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/TolerationRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"TolerationRules":{"description":"Toleration details.","properties":{"operator":{"$ref":"#/components/schemas/TolerationOperatorRules"},"key":{"$ref":"#/components/schemas/StringRules"},"value":{"$ref":"#/components/schemas/StringRules"},"effect":{"$ref":"#/components/schemas/TolerationEffectRules"},"seconds":{"$ref":"#/components/schemas/IntegerRules"},"exclude":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"TolerationOperatorRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationOperatorOptions"}],"nullable":true,"type":"object"},"TolerationOperatorOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationOperator"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"TolerationEffectRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/TolerationEffectOptions"}],"nullable":true,"type":"object"},"TolerationEffectOptions":{"properties":{"options":{"description":"Limit the permitted values for imagePullPolicy to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/TolerationEffect"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ConnectivityRules":{"properties":{"ports":{"$ref":"#/components/schemas/PortsRules"},"exposedUrls":{"$ref":"#/components/schemas/ExposedUrlsRules"},"relatedUrls":{"$ref":"#/components/schemas/RelatedUrlsRules"}},"nullable":true,"type":"object"},"PortsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PortRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PortRules":{"description":"Rules for port attributes","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"serviceType":{"$ref":"#/components/schemas/PortServiceTypeRules"},"customExternalPort":{"$ref":"#/components/schemas/BooleanRules"},"external":{"$ref":"#/components/schemas/IntegerRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PortServiceTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/PortServiceTypeOptions"}],"nullable":true,"type":"object"},"PortServiceTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PortServiceType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ExposedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExposedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExposedUrlRules":{"description":"Rules for the attributed of exposedUrls","properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"customUrl":{"$ref":"#/components/schemas/BooleanRules"},"url":{"$ref":"#/components/schemas/StringRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"toolType":{"$ref":"#/components/schemas/StringRules"},"toolName":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"RelatedUrlsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/RelatedUrlRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"RelatedUrlRules":{"description":"Rules for the attributes of relatedUrls","properties":{"url":{"$ref":"#/components/schemas/StringRules"},"type":{"$ref":"#/components/schemas/StringRules"},"name":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ComputeRules":{"properties":{"compute":{"$ref":"#/components/schemas/ComputeFieldsRules"}},"nullable":true,"type":"object"},"ComputeFieldsRules":{"allOf":[{"$ref":"#/components/schemas/ComputeFlatFieldsRules"},{"$ref":"#/components/schemas/ComputeItemizedFieldsRules"}],"nullable":true,"type":"object"},"ComputeFlatFieldsRules":{"properties":{"cpuCoreRequest":{"$ref":"#/components/schemas/NumberRules"},"cpuCoreLimit":{"$ref":"#/components/schemas/NumberRules"},"cpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"cpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"},"largeShmRequest":{"$ref":"#/components/schemas/BooleanRules"},"gpuRequestType":{"$ref":"#/components/schemas/GpuRequestRules"},"migProfile":{"$ref":"#/components/schemas/MigProfileRules","deprecated":true},"gpuDevicesRequest":{"$ref":"#/components/schemas/IntegerRules"},"gpuPortionRequest":{"$ref":"#/components/schemas/NumberRules"},"gpuPortionLimit":{"$ref":"#/components/schemas/NumberRules"},"gpuMemoryRequest":{"$ref":"#/components/schemas/QuantityRules"},"gpuMemoryLimit":{"$ref":"#/components/schemas/QuantityRules"}},"nullable":true,"type":"object"},"NumberRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory. default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"number","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"number","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=3, step=0.25 implies that the values the field can hold are 2, 2.25, 2.5 and 3.","type":"number","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"QuantityRules":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"required":{"description":"Whether the field is mandatory, default to false.","type":"boolean","nullable":true},"canEdit":{"description":"Whether the value of the field is editable, default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"max":{"description":"The maximum value that the field can be assigned to.","type":"string","nullable":true,"pattern":"^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"GpuRequestRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/GpuRequestOptions"}],"nullable":true,"type":"object"},"GpuRequestOptions":{"properties":{"options":{"description":"Limit the permitted values for gpuRequest to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/GpuRequestType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"MigProfileRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/MigProfileOptions"}],"nullable":true,"type":"object"},"MigProfileOptions":{"properties":{"options":{"description":"Limit the permitted values for migProfile to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/MigProfile"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object","deprecated":true},"ComputeItemizedFieldsRules":{"properties":{"extendedResources":{"$ref":"#/components/schemas/ExtendedResourcesRules"}},"nullable":true,"type":"object"},"ExtendedResourcesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ExtendedResourceRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ExtendedResourceRules":{"description":"Rules for the attributes of extendedResources","properties":{"quantity":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"InferenceSecurityRules":{"properties":{"security":{"$ref":"#/components/schemas/CommonSecurityFlatFieldsRules"}},"nullable":true,"type":"object"},"CommonSecurityFlatFieldsRules":{"allOf":[{"$ref":"#/components/schemas/CommonSecurityNonOverridableRules"},{"$ref":"#/components/schemas/CommonSecurityOverridableRules"}],"nullable":true,"type":"object"},"CommonSecurityNonOverridableRules":{"properties":{"uidGidSource":{"$ref":"#/components/schemas/UidGidSourceRules"},"capabilities":{"$ref":"#/components/schemas/ArrayRules"},"seccompProfileType":{"$ref":"#/components/schemas/SeccompProfileTypeRules"},"runAsNonRoot":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyRootFilesystem":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"UidGidSourceRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/UidGidSourceOptions"}],"nullable":true,"type":"object"},"UidGidSourceOptions":{"properties":{"options":{"description":"Limit the permitted values for uidGidSource to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/UidGidSource"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"SeccompProfileTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/SeccompProfileTypeOptions"}],"nullable":true,"type":"object"},"SeccompProfileTypeOptions":{"properties":{"options":{"description":"Limit the permitted values for secompProfileType to a given set of values.","type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/SeccompProfileType"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"CommonSecurityOverridableRules":{"description":"Security related fields. When used in assets context, those are environment asset fields that can be override in the submit workload request.","properties":{"runAsUid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"runAsGid":{"$ref":"#/components/schemas/IntegerRulesOptional"},"supplementalGroups":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"IntegerRulesOptional":{"properties":{"sourceOfRule":{"$ref":"#/components/schemas/SourceOfRule"},"canEdit":{"description":"Whether the value of the field is editable. default to true","type":"boolean","nullable":true},"min":{"description":"The minimum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"max":{"description":"The maximum value that the field can be assigned to.","type":"integer","format":"int32","nullable":true},"step":{"description":"The minimal difference between two values the field can be assigned to. For example, min=2, max=10, step=2 implies that the values the field can hold are 2, 4, 6, 8 and 10.","type":"integer","format":"int32","nullable":true},"defaultFrom":{"$ref":"#/components/schemas/DefaultFromRule"}},"nullable":true,"type":"object"},"CommonStorageRules":{"properties":{"storage":{"$ref":"#/components/schemas/CommonStorageFieldsRules"}},"nullable":true,"type":"object"},"CommonStorageFieldsRules":{"properties":{"dataVolume":{"$ref":"#/components/schemas/DataVolumesRules"},"pvc":{"$ref":"#/components/schemas/PvcsRules"},"hostPath":{"$ref":"#/components/schemas/HostPathsRules"},"nfs":{"$ref":"#/components/schemas/NfssRules"},"git":{"$ref":"#/components/schemas/GitsRules"},"configMapVolume":{"$ref":"#/components/schemas/ConfigMapsRules"},"secretVolume":{"$ref":"#/components/schemas/SecretsRules"},"emptyDirVolume":{"$ref":"#/components/schemas/EmptyDirsRules"}},"nullable":true,"type":"object"},"DataVolumesRules":{"properties":{"attributes":{"$ref":"#/components/schemas/DataVolumeRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"DataVolumeRules":{"properties":{"id":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"PvcsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/PvcRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"PvcRules":{"properties":{"claimName":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"claimInfo":{"$ref":"#/components/schemas/ClaimInfoRules"}},"nullable":true,"type":"object"},"ClaimInfoRules":{"properties":{"size":{"$ref":"#/components/schemas/StringRules"},"storageClass":{"$ref":"#/components/schemas/StringRules"},"accessModes":{"$ref":"#/components/schemas/PvcAccessModesRules"}},"nullable":true,"type":"object"},"PvcAccessModesRules":{"description":"Rules for access mode(s) for a newly created PVC.","properties":{"readWriteOnce":{"$ref":"#/components/schemas/BooleanRules"},"readOnlyMany":{"$ref":"#/components/schemas/BooleanRules"},"readWriteMany":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"HostPathsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/HostPathRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"HostPathRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"mountPropagation":{"$ref":"#/components/schemas/HostPathMountPropagationRules"}},"nullable":true,"type":"object"},"HostPathMountPropagationRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/HostPathMountPropagationOptions"}],"nullable":true,"type":"object"},"HostPathMountPropagationOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/HostPathMountPropagation"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}}},"NfssRules":{"properties":{"attributes":{"$ref":"#/components/schemas/NfsRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"NfsRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"readOnly":{"$ref":"#/components/schemas/BooleanRules"},"server":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"GitsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/GitRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"GitRules":{"properties":{"repository":{"$ref":"#/components/schemas/StringRules"},"branch":{"$ref":"#/components/schemas/StringRules"},"revision":{"$ref":"#/components/schemas/StringRules"},"path":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"ConfigMapsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/ConfigMapRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"ConfigMapRules":{"properties":{"configMap":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"},"subPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"SecretsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/SecretRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"SecretRules":{"properties":{"secret":{"$ref":"#/components/schemas/StringRules"},"mountPath":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"EmptyDirsRules":{"properties":{"attributes":{"$ref":"#/components/schemas/EmptyDirRules"},"instances":{"$ref":"#/components/schemas/ItemRules"}},"nullable":true,"type":"object"},"EmptyDirRules":{"properties":{"path":{"$ref":"#/components/schemas/StringRules"},"medium":{"$ref":"#/components/schemas/StringRules"},"sizeLimit":{"$ref":"#/components/schemas/StringRules"}},"nullable":true,"type":"object"},"InferenceFieldsRules":{"properties":{"servingPort":{"$ref":"#/components/schemas/ServingPortRules"},"autoscaling":{"$ref":"#/components/schemas/AutoScalingRules"},"servingConfiguration":{"$ref":"#/components/schemas/ServingConfigurationRules"}},"nullable":true,"type":"object"},"ServingPortRules":{"properties":{"container":{"$ref":"#/components/schemas/IntegerRules"},"protocol":{"$ref":"#/components/schemas/ServingPortProtocolRules"},"authorizationType":{"$ref":"#/components/schemas/ServingPortAuthorizationTypeRules"},"authorizedUsers":{"$ref":"#/components/schemas/ArrayRules"},"authorizedGroups":{"$ref":"#/components/schemas/ArrayRules"},"clusterLocalAccessOnly":{"$ref":"#/components/schemas/BooleanRules"}},"nullable":true,"type":"object"},"ServingPortProtocolRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ServingPortProtocolOptions"}],"nullable":true,"type":"object"},"ServingPortProtocolOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ServingPortProtocol"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ServingPortAuthorizationTypeRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/ServingPortAuthorizationTypeOptions"}],"nullable":true,"type":"object"},"ServingPortAuthorizationTypeOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/ServingPortAccessAuthorizationTypeEnum"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"AutoScalingRules":{"properties":{"metricThresholdPercentage":{"$ref":"#/components/schemas/NumberRules"},"minReplicas":{"$ref":"#/components/schemas/IntegerRules"},"maxReplicas":{"$ref":"#/components/schemas/IntegerRules"},"initialReplicas":{"$ref":"#/components/schemas/IntegerRules"},"activationReplicas":{"$ref":"#/components/schemas/IntegerRules"},"metric":{"$ref":"#/components/schemas/AutoScalingMetricRules"},"metricThreshold":{"$ref":"#/components/schemas/IntegerRules"},"concurrencyHardLimit":{"$ref":"#/components/schemas/IntegerRules"},"scaleToZeroRetentionSeconds":{"$ref":"#/components/schemas/IntegerRules"},"scaleDownDelaySeconds":{"$ref":"#/components/schemas/IntegerRules"},"initializationTimeoutSeconds":{"allOf":[{"$ref":"#/components/schemas/IntegerRules"}],"deprecated":true}},"nullable":true,"type":"object"},"AutoScalingMetricRules":{"allOf":[{"$ref":"#/components/schemas/StringRulesCommon"},{"$ref":"#/components/schemas/AutoScalingMetricOptions"}],"nullable":true,"type":"object"},"AutoScalingMetricOptions":{"properties":{"options":{"type":"array","items":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/AutoScalingMetric"},"displayed":{"description":"Textual description of the value","type":"string","nullable":true}}},"nullable":true}},"nullable":true,"type":"object"},"ServingConfigurationRules":{"properties":{"initializationTimeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"},"requestTimeoutSeconds":{"$ref":"#/components/schemas/IntegerRules"}},"nullable":true,"type":"object"},"ImposedAssets":{"description":"a list of datasource assets to import into the policy. these datasources will be included in any workload that will be created in the scope of the policy.","type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"PolicyValidationStatus":{"properties":{"validation":{"properties":{"errorMessage":{"type":"string","description":"In case validation failed, holds the error message explaining the issue"}},"nullable":true,"type":"object"}},"nullable":true,"type":"object"},"FieldsToReset":{"description":"set of fields in jsonpath format that is requested to clear their policy (default and rules)","type":"array","items":{"type":"string"}},"InferencePolicyV2":{"properties":{"meta":{"$ref":"#/components/schemas/PolicyMeta"},"policy":{"$ref":"#/components/schemas/InferencePolicyDefaultsAndRulesV2"},"effective":{"$ref":"#/components/schemas/InferencePolicyDefaultsAndRulesV2"},"effectiveUpdatedAt":{"$ref":"#/components/schemas/Timestamp"}},"nullable":true,"type":"object"},"PolicyMeta":{"allOf":[{"$ref":"#/components/schemas/PolicyReadOnlyFields"},{"$ref":"#/components/schemas/PolicyCreationFields"}]},"PolicyReadOnlyFields":{"required":["id","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"clusterId":{"$ref":"#/components/schemas/ClusterIdOptional"},"createdBy":{"description":"The user who created the policy.","type":"string","minLength":1},"createdAt":{"description":"The time at which the policy wes created","type":"string","minLength":1,"format":"date-time"},"updatedBy":{"description":"The user who updated the policy.","type":"string","minLength":1},"updatedAt":{"description":"The time at which the policy has been updated","type":"string","minLength":1,"format":"date-time"}}},"PolicyId":{"description":"The unique id of the policy.","type":"string","minLength":1,"format":"uuid"},"TenantId":{"description":"The id of the tenant.","type":"integer","format":"int32"},"Timestamp":{"description":"The time at which an event occurred. e.g. the time an effective policy has been updated","type":"string","minLength":1,"format":"date-time"},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string"},"details":{"type":"string"}}}},"responses":{"400BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403Forbidden":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503ServiceUnavailable":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v2/policy/inferences":{"patch":{"summary":"Update an inference policy.","description":"Use to apply changes to inference policy for a given organizational unit.","operationId":"update_inference_policy_v2","tags":["Policy"],"parameters":[{"$ref":"#/components/parameters/ValidateOnly"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferencePolicyChangeRequestV2"}}}},"responses":{"200":{"description":"Policy applied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferencePolicyV2"}}}},"400":{"$ref":"#/components/responses/400BadRequest"},"401":{"$ref":"#/components/responses/401Unauthorized"},"403":{"$ref":"#/components/responses/403Forbidden"},"503":{"$ref":"#/components/responses/503ServiceUnavailable"}}}}}}
```
