ai/h2o/engine/v1/adjusted_dai_profile.proto (version not set)
Download OpenAPI specification:Download
Returns a specific DAIEngine.
path Parameters
name required | stringworkspaces/[^/]+/adjustedDAIProfiles/[^/]+ AdjustedDAIProfile resource name. |
Responses
Response samples
- 200
- default
{- "adjustedDaiProfile": {
- "name": "string",
- "displayName": "string",
- "cpu": 0,
- "adjustedCpuReason": "string",
- "gpu": 0,
- "adjustedGpuReason": "string",
- "memoryBytes": "string",
- "adjustedMemoryBytesReason": "string",
- "storageBytes": "string",
- "adjustedStorageBytesReason": "string",
- "order": 0
}
}
Returns a collection of adjustedDAIProfiles within a workspace.
path Parameters
parent required | stringworkspaces/[^/]+ Workspace resource name. |
query Parameters
pageSize | integer <int32> Maximum number of AdjustedDAIProfiles to return in a response. If unspecified (or set to 0), at most 50 AdjustedDAIProfiles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken | string Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the ListAdjustedDAIProfilesResponse. |
Responses
Response samples
- 200
- default
{- "adjustedDaiProfiles": [
- {
- "name": "string",
- "displayName": "string",
- "cpu": 0,
- "adjustedCpuReason": "string",
- "gpu": 0,
- "adjustedGpuReason": "string",
- "memoryBytes": "string",
- "adjustedMemoryBytesReason": "string",
- "storageBytes": "string",
- "adjustedStorageBytesReason": "string",
- "order": 0
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Returns the current DAIEngineConstraintSet.
path Parameters
name_1 required | stringworkspaces/[^/]+/daiEngineConstraintSet DAIEngineConstraintSet resource name. Format: workspaces/{workspace}/daiEngineConstraintSet |
Responses
Response samples
- 200
- default
{- "daiEngineConstraintSet": {
- "name": "string",
- "cpu": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpu": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytes": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "storageBytes": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDuration": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDuration": {
- "min": "string",
- "max": "string",
- "default": "string"
}
}
}
Returns a collection of DAIEngineProfiles.
query Parameters
pageSize | integer <int32> Maximum number of DAIEngineProfiles to return in a response. If unspecified (or set to 0), at most 50 DAIEngineProfiles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken | string Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the ListDAIEngineProfilesResponse. |
Responses
Response samples
- 200
- default
{- "daiEngineProfiles": [
- {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}
], - "nextPageToken": "string"
}
Creates a new DAIEngineProfile. (-- api-linter: core::0133::method-signature=disabled aip.dev/not-precedent: Not specifying "parent" because DAIEngineProfile is a top-level resource. --) (-- api-linter: core::0133::http-uri-parent=disabled aip.dev/not-precedent: Not specifying "parent" because DAIEngineProfile is a top-level resource. --)
query Parameters
daiEngineProfileId required | string Specify the DAIEngineProfile ID, which will become a part of the DAIEngineProfile resource name. It must:
This matches a regular expression: ^a-z?$ |
Request Body schema: application/json
The DAIEngineProfile resource to create.
displayName | string Optional. Human-readable name. |
priority | integer <int32> Optional. Priority of the DAIEngineProfile. Lower value means higher priority. Priority is NOT a unique value (any two DAIEngineProfiles can have the same priority value). |
enabled | boolean Optional. When set to true, the DAIEngineProfile is enabled and can be used in DAIEngine. When set to false, the DAIEngineProfile is disabled and cannot be used in any DAIEngine. |
assignedOidcRolesEnabled | boolean Optional. When set to true, the assigned_oidc_roles field is verified when a user uses this profile. |
assignedOidcRoles | Array of strings Optional. List of OIDC roles assigned to this DAIEngineProfile. When profile has assigned some OIDC roles and verification of this list is enabled (assigned_oidc_roles_enabled=true), then this profile can be used only by users who have assigned at least one role from this list. Example 1: assigned_oidc_roles = ["role1", "role2"]. This profile can be used only by users who have assigned either role1 or role2. Example 2 (special case): assigned_oidc_roles = []. Empty list means that the profile has not assigned any OIDC role, therefore this profile cannot be used by any user. |
maxRunningEngines | integer or null <int32> Optional. Maximum number of DAIEngines per user that can be running when using this DAIEngineProfile. |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintDuration) Message representing a constraint on a user-specified duration value. | |
object (v1ProfileConstraintDuration) Message representing a constraint on a user-specified duration value. | |
maxNonInteractionDuration | string or null Optional. Max non-interation duration applied on all DAIEngines that use this profile. |
maxUnusedDuration | string or null Optional. Max unused duration applied on all DAIEngines that use this profile. |
object Optional. configuration_override is applied on top of all other configurations when creating the final configuration that is passed to the DAI server. The whole config setup priority is: final_configuration = configuration_override > core_configuration (hardcoded on AIEM server) > DAIEngine.config > base_configuration where higher priority is always applied on top of the lower priority. Example:
The final configuration is composed as:
| |
object Optional. base configuration forms the basis of the final configuration that is passed to the DAI server. See configuration_override for the overall configuration setup logic. | |
configEditability | string (DAIEngineProfileConfigEditability) Default: "CONFIG_EDITABILITY_UNSPECIFIED" Enum: "CONFIG_EDITABILITY_UNSPECIFIED" "CONFIG_EDITABILITY_DISABLED" "CONFIG_EDITABILITY_BASE_CONFIG_ONLY" "CONFIG_EDITABILITY_FULL" All possible DAIEngine.config editability options.
|
yamlPodTemplateSpec | string (Optional. YAML representation of custom PodTemplateSpec.
Definition of PodTemplateSpec: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podtemplatespec-v1-core) When specified, then it is applied for each DAIEngine that uses this profile. PodTemplateSpec describes what will be applied on top of a regular DriverlessAI pod before it is created. This template is merged into DriverlessAI default pod using StrategicMergePatch method (it overrides the default pod). More info about StrategicMergePatch: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/ Example YAML value (custom annotation applied for each DAI pod): metadata: annotations: custom-key: custom-value |
yamlGpuTolerations | string (Optional. YAML representation of custom GPU Tolerations.
Definition of one Toleration: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#toleration-v1-core) When specified, then it is applied for each DAIEngine that uses this profile. GPUTolerations sets DriverlessAI's pod.spec.tolerations in case DAIEngine has GPU > 0. This will override any tolerations defined in yaml_pod_template_spec.PodSpec.Tolerations field. Example YAML value (two GPU tolerations applied for each DAI pod):
|
tritonEnabled | boolean Optional. True when DAI built-in Triton inference server is enabled, false when it is disabled. |
Responses
Request samples
- Payload
{- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true
}
Response samples
- 200
- default
{- "daiEngineProfile": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}
}
Updates a DAIEngineProfile.
path Parameters
daiEngineProfile.name required | stringdaiEngineProfiles/[^/]+ Output only. Resource name. Format: daiEngineProfiles/* |
query Parameters
updateMask required | string Required. The list of paths referencing which fields to update. Update mask must be non-empty. Allowed field paths are:
Paths are case sensitive (must match exactly). To update all allowed fields, specify exactly one path with value "*". |
Request Body schema: application/json
Required. DAIEngineProfile resource.
displayName | string Optional. Human-readable name. |
priority | integer <int32> Optional. Priority of the DAIEngineProfile. Lower value means higher priority. Priority is NOT a unique value (any two DAIEngineProfiles can have the same priority value). |
enabled | boolean Optional. When set to true, the DAIEngineProfile is enabled and can be used in DAIEngine. When set to false, the DAIEngineProfile is disabled and cannot be used in any DAIEngine. |
assignedOidcRolesEnabled | boolean Optional. When set to true, the assigned_oidc_roles field is verified when a user uses this profile. |
assignedOidcRoles | Array of strings Optional. List of OIDC roles assigned to this DAIEngineProfile. When profile has assigned some OIDC roles and verification of this list is enabled (assigned_oidc_roles_enabled=true), then this profile can be used only by users who have assigned at least one role from this list. Example 1: assigned_oidc_roles = ["role1", "role2"]. This profile can be used only by users who have assigned either role1 or role2. Example 2 (special case): assigned_oidc_roles = []. Empty list means that the profile has not assigned any OIDC role, therefore this profile cannot be used by any user. |
maxRunningEngines | integer or null <int32> Optional. Maximum number of DAIEngines per user that can be running when using this DAIEngineProfile. |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintDuration) Message representing a constraint on a user-specified duration value. | |
object (v1ProfileConstraintDuration) Message representing a constraint on a user-specified duration value. | |
maxNonInteractionDuration | string or null Optional. Max non-interation duration applied on all DAIEngines that use this profile. |
maxUnusedDuration | string or null Optional. Max unused duration applied on all DAIEngines that use this profile. |
object Optional. configuration_override is applied on top of all other configurations when creating the final configuration that is passed to the DAI server. The whole config setup priority is: final_configuration = configuration_override > core_configuration (hardcoded on AIEM server) > DAIEngine.config > base_configuration where higher priority is always applied on top of the lower priority. Example:
The final configuration is composed as:
| |
object Optional. base configuration forms the basis of the final configuration that is passed to the DAI server. See configuration_override for the overall configuration setup logic. | |
configEditability | string (DAIEngineProfileConfigEditability) Default: "CONFIG_EDITABILITY_UNSPECIFIED" Enum: "CONFIG_EDITABILITY_UNSPECIFIED" "CONFIG_EDITABILITY_DISABLED" "CONFIG_EDITABILITY_BASE_CONFIG_ONLY" "CONFIG_EDITABILITY_FULL" All possible DAIEngine.config editability options.
|
yamlPodTemplateSpec | string (Optional. YAML representation of custom PodTemplateSpec.
Definition of PodTemplateSpec: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podtemplatespec-v1-core) When specified, then it is applied for each DAIEngine that uses this profile. PodTemplateSpec describes what will be applied on top of a regular DriverlessAI pod before it is created. This template is merged into DriverlessAI default pod using StrategicMergePatch method (it overrides the default pod). More info about StrategicMergePatch: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/ Example YAML value (custom annotation applied for each DAI pod): metadata: annotations: custom-key: custom-value |
yamlGpuTolerations | string (Optional. YAML representation of custom GPU Tolerations.
Definition of one Toleration: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#toleration-v1-core) When specified, then it is applied for each DAIEngine that uses this profile. GPUTolerations sets DriverlessAI's pod.spec.tolerations in case DAIEngine has GPU > 0. This will override any tolerations defined in yaml_pod_template_spec.PodSpec.Tolerations field. Example YAML value (two GPU tolerations applied for each DAI pod):
|
tritonEnabled | boolean Optional. True when DAI built-in Triton inference server is enabled, false when it is disabled. |
Responses
Request samples
- Payload
{- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true
}
Response samples
- 200
- default
{- "daiEngineProfile": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}
}
Get DAIEngineProfile.
path Parameters
name_2 required | stringdaiEngineProfiles/[^/]+ DAIEngineProfile resource name. Format: daiEngineProfiles/{dai_engine_profile} |
Responses
Response samples
- 200
- default
{- "daiEngineProfile": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}
}
Updates a DAIEngine.
path Parameters
daiEngine.name required | stringworkspaces/[^/]+/daiEngines/[^/]+ DAIEngine resource name. |
query Parameters
updateMask required | string The list of paths referencing which fields to update. Update mask must be non-empty. Allowed field paths are: {"profile", "cpu", "gpu", "memory_bytes", "config", "annotations", "display_name", "max_idle_duration", "max_running_duration"}. Paths are case sensitive (must match exactly). To update all allowed fields, specify exactly one path with value "*". |
allowMissing | boolean When set and the DAIEngine is not found, a new one is created.
In this situation, |
validateOnly | boolean When set, request is validated but no changes are made. |
Request Body schema: application/json
DAIEngine resource.
profile | string Optional. The resource name of the DAIEngineProfile that is used by this DAIEngine.
Format is |
object (v1DAIEngineProfileInfo) The original DAIEngineProfile data used by DAIEngine when using the DAIEngineProfile. For more info about each field see the original DAIEngineProfile resource. | |
state | string (v1DAIEngineState) Default: "STATE_UNSPECIFIED" Enum: "STATE_UNSPECIFIED" "STATE_STARTING" "STATE_RUNNING" "STATE_PAUSING" "STATE_PAUSED" "STATE_FAILED" "STATE_DELETING" "STATE_CONNECTING" All possible DAIEngine states.
|
object Additional arbitrary metadata associated with the DAIEngine. Annotations are key/value pairs. The key must:
| |
displayName | string Human-readable name of the DAIEngine. Must contain at most 63 characters. Does not have to be unique. |
version | string or null Driverless AI version identifier. Version may be specified during engine creation but cannot be changed later. For example: "1.10.1" or "latest". |
cpu | integer or null <int32> The amount of CPU units requested by this DAIEngine. |
gpu | integer or null <int32> The amount of GPU units requested by this DAIEngine. |
memoryBytes | string or null <int64> The amount of memory in bytes requested by this DAIEngine. |
storageBytes | string or null <int64> The amount of storage requested by this DAIEngine. |
object Additional Driverless AI configuration. Temporary: Some config keys are reserved and their value cannot be changed. Attempting to set or override a reserved key will have no effect, no error will be raised. Entries with reserved keys will not be available in this field (they are hidden). | |
maxIdleDuration | string or null (Maximum time the DAIEngine can be idle. When exceeded, the DAIEngine will pause.
The idle time is reset when any of the following occurs:
- incoming RPC request from client
- user login or logout
- system event like sync message from running or finished experiment
- initialization of dataset upload
- custom recipe upload) |
maxRunningDuration | string or null Maximum time the DAIEngine can be running. When exceeded, the DAIEngine will pause. |
Responses
Request samples
- Payload
{- "profile": "string",
- "profileInfo": {
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED"
}, - "state": "STATE_UNSPECIFIED",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "maxIdleDuration": "string",
- "maxRunningDuration": "string"
}
Response samples
- 200
- default
{- "daiEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "profileInfo": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}, - "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "storageResizing": true,
- "totalDiskSizeBytes": "string",
- "freeDiskSizeBytes": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "resumeTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "upgradeAvailable": true,
- "currentIdleDuration": "string",
- "currentRunningDuration": "string"
}
}
Download DAIEngine logs.
path Parameters
daiEngine required | stringworkspaces/[^/]+/daiEngines/[^/]+ DAIEngine resource name. Format: workspaces/{workspace}/daiEngines/{dai_engine} |
Request Body schema: application/json
Request message for downloading DAIEngines log.
Responses
Request samples
- Payload
{ }
Response samples
- 200
- default
{- "logs": {
- "contentType": "string",
- "data": "string",
- "extensions": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}
}
Migrate DAIEngine creator. Admin only.
path Parameters
daiEngine required | stringworkspaces/[^/]+/daiEngines/[^/]+ DAIEngine resource name. Format: workspaces/{workspace}/daiEngines/{dai_engine} |
Request Body schema: application/json
newCreator required | string (New creator value. Name of an entity that becomes the new creator of the DAIEngine. Format: users/397b8c16-f4cb-41dd-a5e9-5e838edb81ab) |
Responses
Request samples
- Payload
{- "newCreator": "string"
}
Response samples
- 200
- default
{- "daiEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "profileInfo": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}, - "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "storageResizing": true,
- "totalDiskSizeBytes": "string",
- "freeDiskSizeBytes": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "resumeTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "upgradeAvailable": true,
- "currentIdleDuration": "string",
- "currentRunningDuration": "string"
}
}
Resize DAIEngine storage.
path Parameters
daiEngine required | stringworkspaces/[^/]+/daiEngines/[^/]+ DAIEngine resource name. Format: workspaces/{workspace}/daiEngines/{dai_engine} |
Request Body schema: application/json
newStorageBytes required | string <int64> New storage size in bytes. |
Responses
Request samples
- Payload
{- "newStorageBytes": "string"
}
Response samples
- 200
- default
{- "daiEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "profileInfo": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}, - "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "storageResizing": true,
- "totalDiskSizeBytes": "string",
- "freeDiskSizeBytes": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "resumeTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "upgradeAvailable": true,
- "currentIdleDuration": "string",
- "currentRunningDuration": "string"
}
}
Upgrade Driverless AI version.
path Parameters
daiEngine required | stringworkspaces/[^/]+/daiEngines/[^/]+ DAIEngine resource name. Format: workspaces/{workspace}/daiEngines/{dai_engine} |
Request Body schema: application/json
newVersion required | string New version value. For example "1.10.1" or "latest" (alias is also accepted). |
Responses
Request samples
- Payload
{- "newVersion": "string"
}
Response samples
- 200
- default
{- "daiEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "profileInfo": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}, - "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "storageResizing": true,
- "totalDiskSizeBytes": "string",
- "freeDiskSizeBytes": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "resumeTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "upgradeAvailable": true,
- "currentIdleDuration": "string",
- "currentRunningDuration": "string"
}
}
Deletes a DAIEngine.
path Parameters
name_1 required | stringworkspaces/[^/]+/daiEngines/[^/]+ DAIEngine resource name. Format: workspaces/{workspace}/daiEngines/{dai_engine} |
query Parameters
allowMissing | boolean When set and the DAIEngine is not found, the request will succeed but no changes are made. |
validateOnly | boolean When set, request is validated but no changes are made. |
Responses
Response samples
- 200
- default
{- "daiEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "profileInfo": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}, - "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "storageResizing": true,
- "totalDiskSizeBytes": "string",
- "freeDiskSizeBytes": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "resumeTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "upgradeAvailable": true,
- "currentIdleDuration": "string",
- "currentRunningDuration": "string"
}
}
Returns a specific DAIEngine.
path Parameters
name_3 required | stringworkspaces/[^/]+/daiEngines/[^/]+ DAIEngine resource name. Format: workspaces/{workspace}/daiEngines/{dai_engine} |
Responses
Response samples
- 200
- default
{- "daiEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "profileInfo": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}, - "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "storageResizing": true,
- "totalDiskSizeBytes": "string",
- "freeDiskSizeBytes": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "resumeTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "upgradeAvailable": true,
- "currentIdleDuration": "string",
- "currentRunningDuration": "string"
}
}
Pauses a DAIEngine.
path Parameters
name required | stringworkspaces/[^/]+/daiEngines/[^/]+ DAIEngine resource name. Format: workspaces/{workspace}/daiEngines/{dai_engine} |
Request Body schema: application/json
validateOnly | boolean When set, request is validated but no changes are made. |
Responses
Request samples
- Payload
{- "validateOnly": true
}
Response samples
- 200
- default
{- "daiEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "profileInfo": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}, - "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "storageResizing": true,
- "totalDiskSizeBytes": "string",
- "freeDiskSizeBytes": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "resumeTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "upgradeAvailable": true,
- "currentIdleDuration": "string",
- "currentRunningDuration": "string"
}
}
Resumes an existing DAIEngine.
path Parameters
name required | stringworkspaces/[^/]+/daiEngines/[^/]+ DAIEngine resource name. Format: workspaces/{workspace}/daiEngines/{dai_engine} |
Request Body schema: application/json
validateOnly | boolean When set, request is validated but no changes are made. |
Responses
Request samples
- Payload
{- "validateOnly": true
}
Response samples
- 200
- default
{- "daiEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "profileInfo": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}, - "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "storageResizing": true,
- "totalDiskSizeBytes": "string",
- "freeDiskSizeBytes": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "resumeTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "upgradeAvailable": true,
- "currentIdleDuration": "string",
- "currentRunningDuration": "string"
}
}
Returns a collection of DAIEngines within a workspace.
path Parameters
parent required | stringworkspaces/[^/]+ Workspace resource name. Format: workspaces/{workspace} |
query Parameters
pageSize | integer <int32> Maximum number of DAIEngines to return in a response. If unspecified (or set to 0), at most 50 DAIEngines will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken | string Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the ListDAIEnginesResponse. |
orderBy | string Used to specify the sorting order. When unset, DAIEngines are ordered by their time of creation in descending order. This is equivalent to "create_time desc". When specified, the value must be a comma separated list of supported fields. The supported fields are:
The default sorting order is ascending. For example: "name" and "name asc" are equivalent values. To specify descending order for a field, append a " desc" suffix. For example: "name desc". Redundant space characters are insignificant. For example these values are all equal:
Undefined (empty) time is interpreted as a zero time (0s since epoch, i.e. 1970-01-01T00:00:00Z). Undefined (empty) duration is interpreted as a zero duration (0 seconds). |
filter | string Used to filter DAIEngines. When unset, no filtering is applied. Filtering implements specification https://google.aip.dev/160. Supported filter fields:
Examples:
|
Responses
Response samples
- 200
- default
{- "daiEngines": [
- {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "profileInfo": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}, - "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "storageResizing": true,
- "totalDiskSizeBytes": "string",
- "freeDiskSizeBytes": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "resumeTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "upgradeAvailable": true,
- "currentIdleDuration": "string",
- "currentRunningDuration": "string"
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Creates a new DAIEngine within a specified workspace.
path Parameters
parent required | stringworkspaces/[^/]+ Workspace resource name. Format: workspaces/{workspace} |
query Parameters
daiEngineId required | string Specify the DAIEngine ID, which will become a part of the DAIEngine resource name. It must:
This matches a regular expression: ^a-z?$ |
validateOnly | boolean When set, request is only validated but no changes are made. |
Request Body schema: application/json
The DAIEngine resource to create. NON_EMPTY_DEFAULT fields that are not set in this request will be set to a default value. Default value is determined by the workspace in which the engine is created. Each workspace has a defined constraint set, which contains the default value for each field.
profile | string Optional. The resource name of the DAIEngineProfile that is used by this DAIEngine.
Format is |
object (v1DAIEngineProfileInfo) The original DAIEngineProfile data used by DAIEngine when using the DAIEngineProfile. For more info about each field see the original DAIEngineProfile resource. | |
state | string (v1DAIEngineState) Default: "STATE_UNSPECIFIED" Enum: "STATE_UNSPECIFIED" "STATE_STARTING" "STATE_RUNNING" "STATE_PAUSING" "STATE_PAUSED" "STATE_FAILED" "STATE_DELETING" "STATE_CONNECTING" All possible DAIEngine states.
|
object Additional arbitrary metadata associated with the DAIEngine. Annotations are key/value pairs. The key must:
| |
displayName | string Human-readable name of the DAIEngine. Must contain at most 63 characters. Does not have to be unique. |
version | string or null Driverless AI version identifier. Version may be specified during engine creation but cannot be changed later. For example: "1.10.1" or "latest". |
cpu | integer or null <int32> The amount of CPU units requested by this DAIEngine. |
gpu | integer or null <int32> The amount of GPU units requested by this DAIEngine. |
memoryBytes | string or null <int64> The amount of memory in bytes requested by this DAIEngine. |
storageBytes | string or null <int64> The amount of storage requested by this DAIEngine. |
object Additional Driverless AI configuration. Temporary: Some config keys are reserved and their value cannot be changed. Attempting to set or override a reserved key will have no effect, no error will be raised. Entries with reserved keys will not be available in this field (they are hidden). | |
maxIdleDuration | string or null (Maximum time the DAIEngine can be idle. When exceeded, the DAIEngine will pause.
The idle time is reset when any of the following occurs:
- incoming RPC request from client
- user login or logout
- system event like sync message from running or finished experiment
- initialization of dataset upload
- custom recipe upload) |
maxRunningDuration | string or null Maximum time the DAIEngine can be running. When exceeded, the DAIEngine will pause. |
Responses
Request samples
- Payload
{- "profile": "string",
- "profileInfo": {
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED"
}, - "state": "STATE_UNSPECIFIED",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "maxIdleDuration": "string",
- "maxRunningDuration": "string"
}
Response samples
- 200
- default
{- "daiEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "profileInfo": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "baseConfiguration": {
- "property1": "string",
- "property2": "string"
}, - "configEditability": "CONFIG_EDITABILITY_UNSPECIFIED",
- "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}, - "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "storageResizing": true,
- "totalDiskSizeBytes": "string",
- "freeDiskSizeBytes": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "resumeTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "upgradeAvailable": true,
- "currentIdleDuration": "string",
- "currentRunningDuration": "string"
}
}
Returns a collection of DAIProfiles.
query Parameters
pageSize | integer <int32> Maximum number of DAIProfiles to return in a response. If unspecified (or set to 0), at most 50 DAIProfiles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken | string Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the ListDAIProfilesResponse. |
Responses
Response samples
- 200
- default
{- "daiProfiles": [
- {
- "name": "string",
- "displayName": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "order": 0
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Creates a new DAIProfile. (-- api-linter: core::0133::method-signature=disabled aip.dev/not-precedent: Not specifying "parent" because DAIProfile is a top-level resource. --) (-- api-linter: core::0133::http-uri-parent=disabled aip.dev/not-precedent: Not specifying "parent" because DAIProfile is a top-level resource. --)
query Parameters
daiProfileId required | string Specify the DAIProfile ID, which will become a part of the DAIProfile resource name. It must:
This matches a regular expression: ^a-z?$ |
Request Body schema: application/json
The DAIProfile resource to create.
displayName | string Human-readable name of DAIProfile. |
cpu required | integer <int32> The amount of CPU units. |
gpu required | integer <int32> The amount of GPU units. |
memoryBytes required | string <int64> The amount of memory in bytes. |
storageBytes required | string <int64> The amount of storage in bytes. |
Responses
Request samples
- Payload
{- "displayName": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string"
}
Response samples
- 200
- default
{- "daiProfile": {
- "name": "string",
- "displayName": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "order": 0
}
}
Updates a DAIProfile.
path Parameters
daiProfile.name required | stringdaiProfiles/[^/]+ DAIProfile resource name. |
query Parameters
updateMask required | string The list of paths referencing which fields to update. Update mask must be non-empty. Allowed field paths are: {"display_name", "cpu", "gpu", "memory_bytes", "storage_bytes"}. To update all allowed fields, specify exactly one path with value "*". |
Request Body schema: application/json
DAIProfile resource.
displayName | string Human-readable name of DAIProfile. |
cpu required | integer <int32> The amount of CPU units. |
gpu required | integer <int32> The amount of GPU units. |
memoryBytes required | string <int64> The amount of memory in bytes. |
storageBytes required | string <int64> The amount of storage in bytes. |
Responses
Request samples
- Payload
{- "displayName": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string"
}
Response samples
- 200
- default
{- "daiProfile": {
- "name": "string",
- "displayName": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "order": 0
}
}
Returns a specific DAIProfile.
path Parameters
name_4 required | stringdaiProfiles/[^/]+ DAIProfile resource name. |
Responses
Response samples
- 200
- default
{- "daiProfile": {
- "name": "string",
- "displayName": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "order": 0
}
}
Change order of a DAIProfile. Changing DAIProfile's order may result in changing order of other DAIProfiles. new_order must be >= 0. When new_order is greater than the last possible order, server will use the last order instead. When new_order is zero, server will use the last order instead.
Example 1:
- DAIProfiles: {profileA.order=1, profileB.order=2, profileC.order=3}.
- ReorderDAIProfile(name=profileA,new_order=2)
- DAIProfiles: {profileB.order=1, profileA.order=2, profileC.order=3}
Example 2 (when new_order greater than the last order, apply last order):
- DAIProfiles: {profileA.order=1, profileB.order=2, profileC.order=3}.
- ReorderDAIProfile(name=profileA,new_order=50)
- DAIProfiles: {profileB.order=1, profileC.order=2, profileA.order=3}
Example 3 (when new_order is zero, apply last order):
- DAIProfiles: {profileA.order=1, profileB.order=2, profileC.order=3}.
- ReorderDAIProfile(name=profileA,new_order=0)
- DAIProfiles: {profileB.order=1, profileC.order=2, profileA.order=3}
path Parameters
name required | stringdaiProfiles/[^/]+ DAIProfile resource name. |
Request Body schema: application/json
newOrder required | integer <int32> New order of the DAIProfile. Must be >= 0. |
Responses
Request samples
- Payload
{- "newOrder": 0
}
Response samples
- 200
- default
{- "daiProfiles": [
- {
- "name": "string",
- "displayName": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "order": 0
}
]
}
Updates a DAISetup.
path Parameters
daiSetup.name required | stringworkspaces/[^/]+/daiSetup DAISetup resource name. |
query Parameters
updateMask required | string The list of paths referencing which fields to update. Update mask must be non-empty. Allowed field paths are: {cpu_constraint, gpu_constraint, memory_bytes_constraint, storage_bytes_constraint, max_idle_duration_constraint, max_running_duration_constraint, max_non_interaction_duration, max_unused_duration, configuration_override, yaml_pod_template_spec, yaml_gpu_tolerations, triton_enabled} To update all allowed fields, specify exactly one path with value "*". |
Request Body schema: application/json
DAISetup resource.
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintDuration) Message representing a constraint on a user-specified duration value. | |
object (v1ConstraintDuration) Message representing a constraint on a user-specified duration value. | |
maxNonInteractionDuration | string or null Max non-interation duration applied on all DAIEngines in the workspace. |
maxUnusedDuration | string or null Max unused duration applied on all DAIEngines in the workspace. |
object When specified, then it is applied on top of each DAIEngine's configuration_override in the workspace. It replaces config values for keys that are set and inserts new values for keys that are not set already. Other configuration key-value pairs are preserved. For example, if DAIEngine's config is set by user as {"foo": "bar", "foo2": "baz"} and DAISetup.configuration_override is {"foo2": "boom", "foo3": "booz"} then the resulting DAIEngine configuration will be {"foo": "bar", "foo2": "boom", "foo3": "booz"}. | |
yamlPodTemplateSpec | string (YAML representation of custom PodTemplateSpec serialized into bytes.
Definition of PodTemplateSpec: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podtemplatespec-v1-core) When specified, then it is applied for each DAIEngine in the workspace. PodTemplateSpec describes what will be applied on top of a regular DriverlessAI pod before it is created. This template is merged into DriverlessAI default pod using StrategicMergePatch method (it overrides the default pod). More info about StrategicMergePatch: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/ Example YAML value (custom annotation applied for each DAI pod): metadata: annotations: custom-key: custom-value |
yamlGpuTolerations | string (YAML representation of custom GPU Tolerations serialized into bytes.
Definition of one Toleration: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#toleration-v1-core) When specified, then it is applied for each DAIEngine in the workspace. GPUTolerations sets DriverlessAI's pod.spec.tolerations in case DAIEngine has GPU > 0. This will override any tolerations defined in yaml_pod_template_spec.PodSpec.Tolerations field. Example YAML value (two GPU tolerations applied for each DAI pod):
|
tritonEnabled | boolean True when DAI built-in Triton inference server is enabled, false when it is disabled. |
Responses
Request samples
- Payload
{- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true
}
Response samples
- 200
- default
{- "daiSetup": {
- "name": "string",
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true
}
}
Returns a DAISetup from a workspace.
path Parameters
name_5 required | stringworkspaces/[^/]+/daiSetup DAISetup resource name. Format: workspaces/{workspace}/daiSetup |
Responses
Response samples
- 200
- default
{- "daiSetup": {
- "name": "string",
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true
}
}
Returns a collection of DAIEngines within a workspace.
query Parameters
pageSize | integer <int32> Maximum number of DAIVersions to return in a response. If unspecified (or set to 0), at most 50 DAIVersions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken | string Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the ListDAIVersionsResponse. |
orderBy | string Used to specify the sorting order. When unset, DAIVersions are ordered by their version name in descending order. This is equivalent to "version desc". When specified, the value must be a comma separated list of supported fields. The supported fields are:
The default sorting order is ascending. For example: "version" and "version asc" are equivalent values. To specify descending order for a field, append a " desc" suffix. For example: "version desc". Redundant space characters are insignificant. |
filter | string Used to filter DAIVersions. When unset, no filtering is applied. Filtering implements specification https://google.aip.dev/160. Supported filter fields:
Examples:
|
Responses
Response samples
- 200
- default
{- "daiVersions": [
- {
- "version": "string",
- "aliases": [
- "string"
], - "deprecated": true,
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Updates the DefaultDAISetup.
path Parameters
defaultDaiSetup.name required | stringdefaultDAISetup Resource name. |
query Parameters
updateMask required | string The list of paths referencing which fields to update. Update mask must be non-empty. Allowed field paths are: {cpu_constraint, gpu_constraint, memory_bytes_constraint, storage_bytes_constraint, max_idle_duration_constraint, max_running_duration_constraint, max_non_interaction_duration, max_unused_duration, configuration_override, yaml_pod_template_spec, yaml_gpu_tolerations, triton_enabled} To update all allowed fields, specify exactly one path with value "*". |
Request Body schema: application/json
DefaultDAISetup resource.
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintDuration) Message representing a constraint on a user-specified duration value. | |
object (v1ConstraintDuration) Message representing a constraint on a user-specified duration value. | |
maxNonInteractionDuration | string or null Max non-interation duration applied on all DAIEngines in the workspace. |
maxUnusedDuration | string or null Max unused duration applied on all DAIEngines in the workspace. |
object When specified, then it is applied on top of each DAIEngine's configuration_override in the workspace. It replaces config values for keys that are set and inserts new values for keys that are not set already. Other configuration key-value pairs are preserved. For example, if DAIEngine's config is set by user as {"foo": "bar", "foo2": "baz"} and DAISetup.configuration_override is {"foo2": "boom", "foo3": "booz"} then the resulting DAIEngine configuration will be {"foo": "bar", "foo2": "boom", "foo3": "booz"}. | |
yamlPodTemplateSpec | string (YAML representation of custom PodTemplateSpec serialized into bytes.
Definition of PodTemplateSpec: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podtemplatespec-v1-core) When specified, then it is applied for each DAIEngine in the workspace. PodTemplateSpec describes what will be applied on top of a regular DriverlessAI pod before it is created. This template is merged into DriverlessAI default pod using StrategicMergePatch method (it overrides the default pod). More info about StrategicMergePatch: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/ Example YAML value (custom annotation applied for each DAI pod): metadata: annotations: custom-key: custom-value |
yamlGpuTolerations | string (YAML representation of custom GPU Tolerations serialized into bytes.
Definition of one Toleration: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#toleration-v1-core) When specified, then it is applied for each DAIEngine in the workspace. GPUTolerations sets DriverlessAI's pod.spec.tolerations in case DAIEngine has GPU > 0. This will override any tolerations defined in yaml_pod_template_spec.PodSpec.Tolerations field. Example YAML value (two GPU tolerations applied for each DAI pod):
|
tritonEnabled | boolean True when DAI built-in Triton inference server is enabled, false when it is disabled. |
Responses
Request samples
- Payload
{- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true
}
Response samples
- 200
- default
{- "defaultDaiSetup": {
- "name": "string",
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true
}
}
Returns the DefaultDAISetup.
path Parameters
name_6 required | stringdefaultDAISetup DefaultDAISetup resource name. Format: defaultDAISetup |
Responses
Response samples
- 200
- default
{- "defaultDaiSetup": {
- "name": "string",
- "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "storageBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxNonInteractionDuration": "string",
- "maxUnusedDuration": "string",
- "configurationOverride": {
- "property1": "string",
- "property2": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "tritonEnabled": true
}
}
Updates the DefaultH2OSetup.
path Parameters
defaultH2oSetup.name required | stringdefaultH2OSetup Resource name. |
query Parameters
updateMask required | string The list of paths referencing which fields to update. Update mask must be non-empty. Allowed field paths are: {node_count_constraint, cpu_constraint, gpu_constraint, memory_bytes_constraint, max_idle_duration_constraint, max_running_duration_constraint, yaml_pod_template_spec, yaml_gpu_tolerations} To update all allowed fields, specify exactly one path with value "*". |
Request Body schema: application/json
DefaultH2OSetup resource.
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintDuration) Message representing a constraint on a user-specified duration value. | |
object (v1ConstraintDuration) Message representing a constraint on a user-specified duration value. | |
yamlPodTemplateSpec | string (YAML representation of custom PodTemplateSpec serialized into bytes.
Definition of PodTemplateSpec: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podtemplatespec-v1-core) When specified, then it is applied for each H2OEngine in the workspace. PodTemplateSpec describes what will be applied on top of a regular H2O pod before it is created. This template is merged into H2O default pod using StrategicMergePatch method (it overrides the default pod). More info about StrategicMergePatch: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/ Example YAML value (custom annotation applied for each H2O pod): metadata: annotations: custom-key: custom-value |
yamlGpuTolerations | string (YAML representation of custom GPU Tolerations serialized into bytes.
Definition of one Toleration: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#toleration-v1-core) When specified, then it is applied for each H2OEngine in the workspace. GPUTolerations sets H2O's pod.spec.tolerations in case H2OEngine has GPU > 0. This will override any tolerations defined in yaml_pod_template_spec.PodSpec.Tolerations field. Example YAML value (two GPU tolerations applied for each H2O pod):
|
Responses
Request samples
- Payload
{- "nodeCountConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string"
}
Response samples
- 200
- default
{- "defaultH2oSetup": {
- "name": "string",
- "nodeCountConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string"
}
}
Returns the DefaultH2OSetup.
path Parameters
name_7 required | stringdefaultH2OSetup DefaultH2OSetup resource name. Format: defaultH2OSetup |
Responses
Response samples
- 200
- default
{- "defaultH2oSetup": {
- "name": "string",
- "nodeCountConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string"
}
}
Returns a collection of Engines within a workspace.
path Parameters
parent required | stringworkspaces/[^/]+ Workspace resource name. Format: workspaces/{workspace} |
query Parameters
pageSize | integer <int32> Maximum number of Engines to return in a response. If unspecified (or set to 0), at most 50 Engines will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken | string Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the ListEnginesResponse. |
orderBy | string Used to specify the sorting order. When unset, Engines are ordered by their time of creation in descending order. This is equivalent to "create_time desc". When specified, the value must be a comma separated list of supported fields. The supported fields are: {name, version, cpu, gpu, memory_bytes, storage_bytes, creator, create_time, update_time, delete_time, resume_time, display_name, uid} The default sorting order is ascending. For example: "name" and "name asc" are equivalent values. To specify descending order for a field, append a " desc" suffix. For example: "name desc". Redundant space characters are insignificant. For example these values are all equal:
|
filter | string Used to filter Engines. When unset, no filtering is applied. Filtering implements specification https://google.aip.dev/160. Supported filter fields:
Examples:
|
Responses
Response samples
- 200
- default
{- "engines": [
- {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "type": "TYPE_UNSPECIFIED",
- "profile": "string",
- "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "storageResizing": true,
- "totalDiskSizeBytes": "string",
- "freeDiskSizeBytes": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "resumeTime": "2019-08-24T14:15:22Z",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "deprecatedVersion": true,
- "deletedVersion": true,
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "storageBytes": "string",
- "upgradeAvailable": true,
- "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "currentIdleDuration": "string",
- "currentRunningDuration": "string"
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Returns the current H2OEngineConstraintSet.
path Parameters
name_8 required | stringworkspaces/[^/]+/h2oEngineConstraintSet H2OEngineConstraintSet resource name. Format: workspaces/{workspace}/h2oEngineConstraintSet |
Responses
Response samples
- 200
- default
{- "h2oEngineConstraintSet": {
- "name": "string",
- "cpu": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpu": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytes": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDuration": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDuration": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "nodeCount": {
- "min": "string",
- "max": "string",
- "default": "string"
}
}
}
Returns a collection of H2OEngineProfiles.
query Parameters
pageSize | integer <int32> Maximum number of H2OEngineProfiles to return in a response. If unspecified (or set to 0), at most 50 H2OEngineProfiles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken | string Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the ListH2OEngineProfilesResponse. |
Responses
Response samples
- 200
- default
{- "h2oEngineProfiles": [
- {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "nodeCountConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}
], - "nextPageToken": "string"
}
Creates a new H2OEngineProfile. (-- api-linter: core::0133::method-signature=disabled aip.dev/not-precedent: Not specifying "parent" because H2OEngineProfile is a top-level resource. --) (-- api-linter: core::0133::http-uri-parent=disabled aip.dev/not-precedent: Not specifying "parent" because H2OEngineProfile is a top-level resource. --)
query Parameters
h2oEngineProfileId required | string Specify the H2OEngineProfile ID, which will become a part of the H2OEngineProfile resource name. It must:
This matches a regular expression: ^a-z?$ |
Request Body schema: application/json
The H2OEngineProfile resource to create.
displayName | string Optional. Human-readable name. |
priority | integer <int32> Optional. Priority of the H2OEngineProfile. Lower value means higher priority. Priority is NOT a unique value (any two H2OEngineProfiles can have the same priority value). |
enabled | boolean Optional. When set to true, the H2OEngineProfile is enabled and can be used in an H2OEngine. When set to false, the H2OEngineProfile is disabled and cannot be used in any H2OEngine. |
assignedOidcRolesEnabled | boolean Optional. When set to true, the assigned_oidc_roles field is verified when a user uses this profile. |
assignedOidcRoles | Array of strings Optional. List of OIDC roles assigned to this H2OEngineProfile. When profile has assigned some OIDC roles and verification of this list is enabled (assigned_oidc_roles_enabled=true), then this profile can be used only by users who have assigned at least one role from this list. Example 1: assigned_oidc_roles = ["role1", "role2"]. This profile can be used only by users who have assigned either role1 or role2. Example 2 (special case): assigned_oidc_roles = []. Empty list means that the profile has not assigned any OIDC role, therefore this profile cannot be used by any user. |
maxRunningEngines | integer or null <int32> Optional. Maximum number of H2OEngines per user that can be running when using this H2OEngineProfile. |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintDuration) Message representing a constraint on a user-specified duration value. | |
object (v1ProfileConstraintDuration) Message representing a constraint on a user-specified duration value. | |
yamlPodTemplateSpec | string (Optional. YAML representation of custom PodTemplateSpec.
Definition of PodTemplateSpec: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podtemplatespec-v1-core) When specified, then it is applied for each H2OEngine that uses this profile. PodTemplateSpec describes what will be applied on top of a regular H2O pod before it is created. This template is merged into H2O default pod using StrategicMergePatch method (it overrides the default pod). More info about StrategicMergePatch: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/ Example YAML value (custom annotation applied for each H2O pod): metadata: annotations: custom-key: custom-value |
yamlGpuTolerations | string (Optional. YAML representation of custom GPU Tolerations.
Definition of one Toleration: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#toleration-v1-core) When specified, then it is applied for each H2OEngine that uses this profile. GPUTolerations sets H2O's pod.spec.tolerations in case H2OEngine has GPU > 0. This will override any tolerations defined in yaml_pod_template_spec.PodSpec.Tolerations field. Example YAML value (two GPU tolerations applied for each H2O pod):
|
Responses
Request samples
- Payload
{- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "nodeCountConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string"
}
Response samples
- 200
- default
{- "h2oEngineProfile": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "nodeCountConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}
}
Updates a H2OEngineProfile.
path Parameters
h2oEngineProfile.name required | stringh2oEngineProfiles/[^/]+ Output only. Resource name. Format: h2oEngineProfiles/* |
query Parameters
updateMask required | string Required. The list of paths referencing which fields to update. Update mask must be non-empty. Allowed field paths are:
Paths are case sensitive (must match exactly). To update all allowed fields, specify exactly one path with value "*". |
Request Body schema: application/json
Required. H2OEngineProfile resource.
displayName | string Optional. Human-readable name. |
priority | integer <int32> Optional. Priority of the H2OEngineProfile. Lower value means higher priority. Priority is NOT a unique value (any two H2OEngineProfiles can have the same priority value). |
enabled | boolean Optional. When set to true, the H2OEngineProfile is enabled and can be used in an H2OEngine. When set to false, the H2OEngineProfile is disabled and cannot be used in any H2OEngine. |
assignedOidcRolesEnabled | boolean Optional. When set to true, the assigned_oidc_roles field is verified when a user uses this profile. |
assignedOidcRoles | Array of strings Optional. List of OIDC roles assigned to this H2OEngineProfile. When profile has assigned some OIDC roles and verification of this list is enabled (assigned_oidc_roles_enabled=true), then this profile can be used only by users who have assigned at least one role from this list. Example 1: assigned_oidc_roles = ["role1", "role2"]. This profile can be used only by users who have assigned either role1 or role2. Example 2 (special case): assigned_oidc_roles = []. Empty list means that the profile has not assigned any OIDC role, therefore this profile cannot be used by any user. |
maxRunningEngines | integer or null <int32> Optional. Maximum number of H2OEngines per user that can be running when using this H2OEngineProfile. |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ProfileConstraintDuration) Message representing a constraint on a user-specified duration value. | |
object (v1ProfileConstraintDuration) Message representing a constraint on a user-specified duration value. | |
yamlPodTemplateSpec | string (Optional. YAML representation of custom PodTemplateSpec.
Definition of PodTemplateSpec: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podtemplatespec-v1-core) When specified, then it is applied for each H2OEngine that uses this profile. PodTemplateSpec describes what will be applied on top of a regular H2O pod before it is created. This template is merged into H2O default pod using StrategicMergePatch method (it overrides the default pod). More info about StrategicMergePatch: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/ Example YAML value (custom annotation applied for each H2O pod): metadata: annotations: custom-key: custom-value |
yamlGpuTolerations | string (Optional. YAML representation of custom GPU Tolerations.
Definition of one Toleration: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#toleration-v1-core) When specified, then it is applied for each H2OEngine that uses this profile. GPUTolerations sets H2O's pod.spec.tolerations in case H2OEngine has GPU > 0. This will override any tolerations defined in yaml_pod_template_spec.PodSpec.Tolerations field. Example YAML value (two GPU tolerations applied for each H2O pod):
|
Responses
Request samples
- Payload
{- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "nodeCountConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string"
}
Response samples
- 200
- default
{- "h2oEngineProfile": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "nodeCountConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}
}
Get H2OEngineProfile.
path Parameters
name_9 required | stringh2oEngineProfiles/[^/]+ H2OEngineProfile resource name. Format: h2oEngineProfiles/{h2o_engine_profile} |
Responses
Response samples
- 200
- default
{- "h2oEngineProfile": {
- "name": "string",
- "displayName": "string",
- "priority": 0,
- "enabled": true,
- "assignedOidcRolesEnabled": true,
- "assignedOidcRoles": [
- "string"
], - "maxRunningEngines": 0,
- "nodeCountConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string",
- "cumulativeMax": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "creator": "string",
- "updater": "string",
- "creatorDisplayName": "string",
- "updaterDisplayName": "string"
}
}
Download H2OEngine logs.
path Parameters
h2oEngine required | stringworkspaces/[^/]+/h2oEngines/[^/]+ H2OEngine resource name. Format: workspaces/{workspace}/h2oEngines/{h2o_engine} |
Request Body schema: application/json
Request message for downloading H2OEngines logs.
Responses
Request samples
- Payload
{ }
Response samples
- 200
- default
{- "logs": {
- "contentType": "string",
- "data": "string",
- "extensions": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}
}
Returns a specific H2OEngine.
path Parameters
name_10 required | stringworkspaces/[^/]+/h2oEngines/[^/]+ H2OEngine resource name. Format: workspaces/{workspace}/h2oEngines/{h2o_engine} |
Responses
Response samples
- 200
- default
{- "h2oEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "currentIdleDuration": "string",
- "currentRunningDuration": "string",
- "nodeCount": 0
}
}
Deletes a H2OEngine.
path Parameters
name_4 required | stringworkspaces/[^/]+/h2oEngines/[^/]+ H2OEngine resource name. Format: workspaces/{workspace}/h2oEngines/{h2o_engine} |
query Parameters
allowMissing | boolean When set and the H2OEngine is not found, the request will succeed but no changes are made. |
validateOnly | boolean When set, request is validated but no changes are made. |
Responses
Response samples
- 200
- default
{- "h2oEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "currentIdleDuration": "string",
- "currentRunningDuration": "string",
- "nodeCount": 0
}
}
Terminate H2OEngine.
path Parameters
name required | stringworkspaces/[^/]+/h2oEngines/[^/]+ H2OEngine resource name. |
Request Body schema: application/json
Request message for terminating a running H2OEngine.
Responses
Request samples
- Payload
{ }
Response samples
- 200
- default
{- "h2oEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "currentIdleDuration": "string",
- "currentRunningDuration": "string",
- "nodeCount": 0
}
}
Returns a collection of H2OEngines within a workspace.
path Parameters
parent required | stringworkspaces/[^/]+ Workspace resource name. Format: workspaces/{workspace} |
query Parameters
pageSize | integer <int32> Maximum number of H2OEngines to return in a response. If unspecified (or set to 0), at most 50 H2OEngines will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken | string Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the ListH2OEnginesResponse. |
orderBy | string Used to specify the sorting order. When unset, H2OEngines are ordered by their time of creation in descending order. This is equivalent to "create_time desc". When specified, the value must be a comma separated list of supported fields. The supported fields are:
The default sorting order is ascending. For example: "name" and "name asc" are equivalent values. To specify descending order for a field, append a " desc" suffix. For example: "name desc". Redundant space characters are insignificant. For example these values are all equal:
Undefined (empty) time is interpreted as a zero time (0s since epoch, i.e. 1970-01-01T00:00:00Z). Undefined (empty) duration is interpreted as a zero duration (0 seconds). |
filter | string Used to filter H2OEngines. When unset, no filtering is applied. Filtering implements specification https://google.aip.dev/160. Supported filter fields:
Examples:
|
Responses
Response samples
- 200
- default
{- "h2oEngines": [
- {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "currentIdleDuration": "string",
- "currentRunningDuration": "string",
- "nodeCount": 0
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Creates and starts a new H2OEngine within a specified workspace.
path Parameters
parent required | stringworkspaces/[^/]+ workspace resource name. Format: workspaces/{workspace} |
query Parameters
h2oEngineId required | string Specify the H2OEngine ID, which will become a part of the H2OEngine resource name. It must:
This matches a regular expression: ^a-z?$ |
validateOnly | boolean When set, request is only validated but no changes are made. |
Request Body schema: application/json
The H2OEngine resource to create. NON_EMPTY_DEFAULT fields that are not set in this request will be set to a default value. Default value is determined by the workspace in which the engine is created. Each workspace has a defined constraint set, which contains the default value for each field.
profile | string Optional. The resource name of the H2OEngineProfile that is used by this H2OEngine.
Format is |
state | string (v1H2OEngineState) Default: "STATE_UNSPECIFIED" Enum: "STATE_UNSPECIFIED" "STATE_STARTING" "STATE_RUNNING" "STATE_PAUSING" "STATE_PAUSED" "STATE_FAILED" "STATE_DELETING" "STATE_CONNECTING" "STATE_TERMINATING" "STATE_TERMINATED" All possible H2OEngine states.
|
object Additional arbitrary metadata associated with the H2OEngine. Annotations are key/value pairs. The key must:
| |
displayName | string Human-readable name of the H2OEngine. Must contain at most 63 characters. Does not have to be unique. |
version required | string H2OEngine version identifier. Version must be specified during engine creation but cannot be changed later. For example: "3.38.0.1" or "latest". |
cpu | integer or null <int32> The amount of CPU units per node requested by this H2OEngine. |
gpu | integer or null <int32> The amount of GPU units per node requested by this H2OEngine. |
memoryBytes | string or null <int64> The amount of memory in bytes per node requested by this H2OEngine. |
maxIdleDuration | string or null Maximum time an H2OEngine can be idle. When exceeded, the H2OEngine will terminate. |
maxRunningDuration | string or null Maximum time an H2OEngine can be running. When exceeded, the H2OEngine will terminate. |
nodeCount | integer or null <int32> The number of nodes requested by this H2OEngine. |
Responses
Request samples
- Payload
{- "profile": "string",
- "state": "STATE_UNSPECIFIED",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "nodeCount": 0
}
Response samples
- 200
- default
{- "h2oEngine": {
- "name": "string",
- "uid": "string",
- "creator": "string",
- "creatorDisplayName": "string",
- "profile": "string",
- "state": "STATE_UNSPECIFIED",
- "reconciling": true,
- "createTime": "2019-08-24T14:15:22Z",
- "deleteTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "apiUrl": "string",
- "loginUrl": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "displayName": "string",
- "version": "string",
- "cpu": 0,
- "gpu": 0,
- "memoryBytes": "string",
- "maxIdleDuration": "string",
- "maxRunningDuration": "string",
- "currentIdleDuration": "string",
- "currentRunningDuration": "string",
- "nodeCount": 0
}
}
Returns a recommended number of nodes and memory within a given workspace constraints for an H2OEngine based on the dimensions of the compressed dataset. (-- api-linter: core::0136::http-uri-suffix=disabled aip.dev/not-precedent: Not declaring URI suffix for this static service custom method without scope. --)
path Parameters
workspace required | stringworkspaces/[^/]+ Workspace resource name. Format: workspaces/{workspace} |
query Parameters
rowsCount required | string <int64> Estimated number of rows in the dataset. |
columnsCount required | string <int64> Estimated number of columns in the dataset. |
Responses
Response samples
- 200
- default
{- "h2oEngineSize": {
- "nodeCount": "string",
- "memoryBytes": "string"
}
}
Returns a recommended number of nodes and memory within a given workspace constraints for an H2OEngine based on the raw size of the dataset. (-- api-linter: core::0136::http-uri-suffix=disabled aip.dev/not-precedent: Not declaring URI suffix for this static service custom method without scope. --)
path Parameters
workspace required | stringworkspaces/[^/]+ Workspace resource name. Format: workspaces/{workspace} |
query Parameters
datasetSizeBytes required | string <int64> Estimated size of the dataset in Bytes. |
Responses
Response samples
- 200
- default
{- "h2oEngineSize": {
- "nodeCount": "string",
- "memoryBytes": "string"
}
}
Updates a H2OSetup.
path Parameters
h2oSetup.name required | stringworkspaces/[^/]+/h2oSetup H2OSetup resource name. |
query Parameters
updateMask required | string The list of paths referencing which fields to update. Update mask must be non-empty. Allowed field paths are: {node_count_constraint, cpu_constraint, gpu_constraint, memory_bytes_constraint, max_idle_duration_constraint, max_running_duration_constraint, yaml_pod_template_spec, yaml_gpu_tolerations} To update all allowed fields, specify exactly one path with value "*". |
Request Body schema: application/json
H2OSetup resource.
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintNumeric) Message representing a constraint on a user-specified numeric value. | |
object (v1ConstraintDuration) Message representing a constraint on a user-specified duration value. | |
object (v1ConstraintDuration) Message representing a constraint on a user-specified duration value. | |
yamlPodTemplateSpec | string (YAML representation of custom PodTemplateSpec serialized into bytes.
Definition of PodTemplateSpec: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podtemplatespec-v1-core) When specified, then it is applied for each H2OEngine in the workspace. PodTemplateSpec describes what will be applied on top of a regular H2O pod before it is created. This template is merged into H2O default pod using StrategicMergePatch method (it overrides the default pod). More info about StrategicMergePatch: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/ Example YAML value (custom annotation applied for each H2O pod): metadata: annotations: custom-key: custom-value |
yamlGpuTolerations | string (YAML representation of custom GPU Tolerations serialized into bytes.
Definition of one Toleration: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#toleration-v1-core) When specified, then it is applied for each H2OEngine in the workspace. GPUTolerations sets H2O's pod.spec.tolerations in case H2OEngine has GPU > 0. This will override any tolerations defined in yaml_pod_template_spec.PodSpec.Tolerations field. Example YAML value (two GPU tolerations applied for each H2O pod):
|
Responses
Request samples
- Payload
{- "nodeCountConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string"
}
Response samples
- 200
- default
{- "h2oSetup": {
- "name": "string",
- "nodeCountConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string"
}
}
Returns a H2OSetup from a workspace.
path Parameters
name_11 required | stringworkspaces/[^/]+/h2oSetup H2OSetup resource name. Format: workspaces/{workspace}/h2oSetup |
Responses
Response samples
- 200
- default
{- "h2oSetup": {
- "name": "string",
- "nodeCountConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "cpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "gpuConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "memoryBytesConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxIdleDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "maxRunningDurationConstraint": {
- "min": "string",
- "max": "string",
- "default": "string"
}, - "yamlPodTemplateSpec": "string",
- "yamlGpuTolerations": "string"
}
}
Returns a collection of H2OEngines within a workspace.
query Parameters
pageSize | integer <int32> Maximum number of H2OVersions to return in a response. If unspecified (or set to 0), at most 50 H2OVersions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken | string Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the ListH2OVersionsResponse. |
orderBy | string Used to specify the sorting order. When unset, H2OVersions are ordered by their version name in descending order. This is equivalent to "version desc". When specified, the value must be a comma separated list of supported fields. The supported fields are:
The default sorting order is ascending. For example: "version" and "version asc" are equivalent values. To specify descending order for a field, append a " desc" suffix. For example: "version desc". Redundant space characters are insignificant. |
filter | string Used to filter H2OVersions. When unset, no filtering is applied. Filtering implements specification https://google.aip.dev/160. Supported filter fields:
Examples:
|
Responses
Response samples
- 200
- default
{- "h2oVersions": [
- {
- "version": "string",
- "aliases": [
- "string"
], - "deprecated": true,
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Returns a collection of InternalDAIVersions.
query Parameters
pageSize | integer <int32> Maximum number of InternalDAIVersions to return in a response. If unspecified (or set to 0), at most 50 InternalDAIVersions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken | string Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the ListInternalDAIVersionsResponse. |
Responses
Response samples
- 200
- default
{- "internalDaiVersions": [
- {
- "name": "string",
- "version": "string",
- "aliases": [
- "string"
], - "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "dataDirectoryStorageClass": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Creates a new InternalDAIVersion. (-- api-linter: core::0133::http-uri-parent=disabled aip.dev/not-precedent: InternalDAIVersion has no parent (it's a top-level resource) --) (-- api-linter: core::0133::method-signature=disabled aip.dev/not-precedent: InternalDAIVersion has no parent (it's a top-level resource) --)
query Parameters
internalDaiVersionId required | string Specify the InternalDAIVersion resource ID, which will become a part of the InternalDAIVersion resource name. It must:
Examples: "1.10.3", "1.10.3-alpha", "1.10.3.2", "1.10.3.2-alpha" |
Request Body schema: application/json
The InternalDAIVersion resource to create.
deprecated | boolean Indicates whether DAIVersion is deprecated. |
image required | string Name of the Docker image used when using this DAIVersion. |
imagePullPolicy | string (v1ImagePullPolicy) Default: "IMAGE_PULL_POLICY_UNSPECIFIED" Enum: "IMAGE_PULL_POLICY_UNSPECIFIED" "IMAGE_PULL_POLICY_ALWAYS" "IMAGE_PULL_POLICY_NEVER" "IMAGE_PULL_POLICY_IF_NOT_PRESENT" Policy for downloading an image in K8s.
|
imagePullSecrets | Array of strings List of references to k8s secrets that can be used for pulling an image of this DAIVersion from a private container image registry or repository. |
gpuResourceName | string K8s GPU resource name. For example: |
dataDirectoryStorageClass | string Name of the storage class used by Driverless AI when using this DAIVersion. When unset, the default storage class of the k8s cluster will be used. |
object Additional arbitrary metadata associated with the DAIVersion. Annotations are key/value pairs. The key must:
|
Responses
Request samples
- Payload
{- "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "dataDirectoryStorageClass": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- default
{- "internalDaiVersion": {
- "name": "string",
- "version": "string",
- "aliases": [
- "string"
], - "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "dataDirectoryStorageClass": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Assign new set of aliases to InternalDAIVersion. This will replace existing InternalDAIVersion aliases with the new aliases. If there are other InternalDAIVersions with the same alias that we try to assign, they will be deleted from the other InternalDAIVersions.
Example 1 - assign only alias latest to another InternalDAIVersion:
- InternalDAIVersions: {daiv1.aliases=["latest", "foo"], daiv2.aliases=["bar", "baz"], daiv3.aliases=["goo"]}
- AssignAliases(daiv3, aliases=["latest"])
- InternalDAIVersions: {daiv1.aliases=["foo"], daiv2.aliases=["bar", "baz"], daiv3.aliases=["latest"]} Note that alias "latest" was deleted from daiv1 and alias "goo" was deleted from daiv3.
Example 2 - add alias latest to another InternalDAIVersion:
- InternalDAIVersions: {daiv1.aliases=["latest", "foo"], daiv2.aliases=["bar", "baz"], daiv3.aliases=["goo"]}
- AssignAliases(daiv3, aliases=["goo", "latest"])
- InternalDAIVersions: {daiv1.aliases=["foo"], daiv2.aliases=["bar", "baz"], daiv3.aliases=["goo", "latest"]} Note that alias "latest" was deleted from daiv1 and alias "goo" remained in the daiv3.
Example 3 - assign multiple aliases which affects aliases of multiple InternalDAIVersions:
- InternalDAIVersions: {daiv1.aliases=["latest", "foo"], daiv2.aliases=["bar", "baz"], daiv3.aliases=["goo"]}
- AssignAliases(daiv3, aliases=["latest", "bar"])
- InternalDAIVersions: {daiv1.aliases=["foo"], daiv2.aliases=["baz"], daiv3.aliases=["latest", "bar"]} Note that
- alias "latest" was deleted from daiv1
- alias "latest" was added to daiv3
- alias "bar" was deleted from daiv2
- alias "goo" was deleted from daiv3
(-- api-linter: core::0136::http-uri-suffix=disabled aip.dev/not-precedent: Google linter incorrectly requires URI suffix "assignInternalDaiVersionAliases" --)
Request Body schema: application/json
internalDaiVersion required | string InternalDAIVersion resource name to which assign the new aliases. |
aliases required | Array of strings New aliases of the InternalH2OVersion. |
Responses
Request samples
- Payload
{- "internalDaiVersion": "string",
- "aliases": [
- "string"
]
}
Response samples
- 200
- default
{- "internalDaiVersions": [
- {
- "name": "string",
- "version": "string",
- "aliases": [
- "string"
], - "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "dataDirectoryStorageClass": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
]
}
Updates a InternalDAIVersion.
path Parameters
internalDaiVersion.name required | stringinternalDAIVersions/[^/]+ InternalDAIVersion resource name. For example: internalDAIVersions/1.10.1.2 |
query Parameters
updateMask required | string The list of paths referencing which fields to update. Update mask must be non-empty. Allowed field paths are: {deprecated, image, image_pull_policy, image_pull_secrets, gpu_resource_name, data_directory_storage_class, annotations}. To update all allowed fields, specify exactly one path with value "*". |
Request Body schema: application/json
InternalDAIVersion resource.
deprecated | boolean Indicates whether DAIVersion is deprecated. |
image required | string Name of the Docker image used when using this DAIVersion. |
imagePullPolicy | string (v1ImagePullPolicy) Default: "IMAGE_PULL_POLICY_UNSPECIFIED" Enum: "IMAGE_PULL_POLICY_UNSPECIFIED" "IMAGE_PULL_POLICY_ALWAYS" "IMAGE_PULL_POLICY_NEVER" "IMAGE_PULL_POLICY_IF_NOT_PRESENT" Policy for downloading an image in K8s.
|
imagePullSecrets | Array of strings List of references to k8s secrets that can be used for pulling an image of this DAIVersion from a private container image registry or repository. |
gpuResourceName | string K8s GPU resource name. For example: |
dataDirectoryStorageClass | string Name of the storage class used by Driverless AI when using this DAIVersion. When unset, the default storage class of the k8s cluster will be used. |
object Additional arbitrary metadata associated with the DAIVersion. Annotations are key/value pairs. The key must:
|
Responses
Request samples
- Payload
{- "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "dataDirectoryStorageClass": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- default
{- "internalDaiVersion": {
- "name": "string",
- "version": "string",
- "aliases": [
- "string"
], - "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "dataDirectoryStorageClass": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Returns a specific InternalDAIVersion.
path Parameters
name_12 required | stringinternalDAIVersions/[^/]+ InternalDAIVersion resource name. |
Responses
Response samples
- 200
- default
{- "internalDaiVersion": {
- "name": "string",
- "version": "string",
- "aliases": [
- "string"
], - "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "dataDirectoryStorageClass": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Returns a collection of InternalH2OVersions.
query Parameters
pageSize | integer <int32> Maximum number of InternalH2OVersions to return in a response. If unspecified (or set to 0), at most 50 InternalH2OVersions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken | string Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the ListInternalH2OVersionsResponse. |
Responses
Response samples
- 200
- default
{- "internalH2oVersions": [
- {
- "name": "string",
- "version": "string",
- "aliases": [
- "string"
], - "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Creates a new InternalH2OVersion. (-- api-linter: core::0133::http-uri-parent=disabled aip.dev/not-precedent: InternalH2OVersion has no parent (it's a top-level resource) --) (-- api-linter: core::0133::method-signature=disabled aip.dev/not-precedent: InternalH2OVersion has no parent (it's a top-level resource) --)
query Parameters
internalH2oVersionId required | string Specify the InternalH2OVersion resource ID, which will become a part of the InternalH2OVersion resource name. It must:
Examples: "3.42.0.3", "3.42.0.3-alpha", "3.42.0.3.1", "3.42.0.3.1-alpha" |
Request Body schema: application/json
The InternalH2OVersion resource to create.
deprecated | boolean Indicates whether H2OVersion is deprecated. |
image required | string Name of the Docker image used when using this H2OVersion. |
imagePullPolicy | string (v1ImagePullPolicy) Default: "IMAGE_PULL_POLICY_UNSPECIFIED" Enum: "IMAGE_PULL_POLICY_UNSPECIFIED" "IMAGE_PULL_POLICY_ALWAYS" "IMAGE_PULL_POLICY_NEVER" "IMAGE_PULL_POLICY_IF_NOT_PRESENT" Policy for downloading an image in K8s.
|
imagePullSecrets | Array of strings List of references to k8s secrets that can be used for pulling an image of this H2OVersion from a private container image registry or repository. |
gpuResourceName | string K8s GPU resource name. For example: |
object Additional arbitrary metadata associated with the H2OVersion. Annotations are key/value pairs. The key must:
|
Responses
Request samples
- Payload
{- "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- default
{- "internalH2oVersion": {
- "name": "string",
- "version": "string",
- "aliases": [
- "string"
], - "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Same behaviour as in AssignInternalDAIVersionAliases. (-- api-linter: core::0136::http-uri-suffix=disabled aip.dev/not-precedent: Google linter incorrectly requires URI suffix "assignInternalH2oVersionAliases" --)
Request Body schema: application/json
internalH2oVersion required | string InternalH2OVersion resource name to which assign the new aliases. |
aliases required | Array of strings New aliases of the InternalH2OVersion. |
Responses
Request samples
- Payload
{- "internalH2oVersion": "string",
- "aliases": [
- "string"
]
}
Response samples
- 200
- default
{- "internalH2oVersions": [
- {
- "name": "string",
- "version": "string",
- "aliases": [
- "string"
], - "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
]
}
Updates a InternalH2OVersion.
path Parameters
internalH2oVersion.name required | stringinternalH2OVersions/[^/]+ InternalH2OVersion resource name. For example: internalH2OVersions/3.42.0.3 |
query Parameters
updateMask required | string The list of paths referencing which fields to update. Update mask must be non-empty. Allowed field paths are: {deprecated, image, image_pull_policy, image_pull_secrets, gpu_resource_name, annotations}. To update all allowed fields, specify exactly one path with value "*". |
Request Body schema: application/json
InternalH2OVersion resource.
deprecated | boolean Indicates whether H2OVersion is deprecated. |
image required | string Name of the Docker image used when using this H2OVersion. |
imagePullPolicy | string (v1ImagePullPolicy) Default: "IMAGE_PULL_POLICY_UNSPECIFIED" Enum: "IMAGE_PULL_POLICY_UNSPECIFIED" "IMAGE_PULL_POLICY_ALWAYS" "IMAGE_PULL_POLICY_NEVER" "IMAGE_PULL_POLICY_IF_NOT_PRESENT" Policy for downloading an image in K8s.
|
imagePullSecrets | Array of strings List of references to k8s secrets that can be used for pulling an image of this H2OVersion from a private container image registry or repository. |
gpuResourceName | string K8s GPU resource name. For example: |
object Additional arbitrary metadata associated with the H2OVersion. Annotations are key/value pairs. The key must:
|
Responses
Request samples
- Payload
{- "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- default
{- "internalH2oVersion": {
- "name": "string",
- "version": "string",
- "aliases": [
- "string"
], - "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Returns a specific InternalH2OVersion.
path Parameters
name_13 required | stringinternalH2OVersions/[^/]+ InternalH2OVersion resource name. |
Responses
Response samples
- 200
- default
{- "internalH2oVersion": {
- "name": "string",
- "version": "string",
- "aliases": [
- "string"
], - "deprecated": true,
- "image": "string",
- "imagePullPolicy": "IMAGE_PULL_POLICY_UNSPECIFIED",
- "imagePullSecrets": [
- "string"
], - "gpuResourceName": "string",
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}