DAIEngineVersionService

Creates a new DAIEngineVersion.

post/v1/{parent}/daiEngineVersions

Request

Path parameters

parentstring required

Workspace resource name. Format: workspaces/{workspace}

Authorization may require the following permission on the daiEngineVersion's parent workspace:

  • actions/enginemanager/daiEngineVersions/CREATE

Query parameters

daiEngineVersionIdstring required

Specify the DAIEngineVersion ID, which will become a part of the DAIEngineVersion resource name.

It must:

  • be in semver format (more segments than three segments allowed)
  • contain max 63 characters

Examples: "1.10.3", "1.10.3-alpha", "1.10.3.2", "1.10.3.2-alpha"

Request body

namestring
deprecatedboolean

Indicates whether DAIEngineVersion is deprecated.

aliasesstring[]

Optional. ResourceID aliases for this DAIEngineVersion. Aliases are unique within the workspace (two versions in the same workspace cannot have the same alias).

Any alias must be in format:

  • contain 1-63 characters
  • contain only lowercase alphanumeric characters or hyphen ('-')
  • start with an alphabetic character
  • end with an alphanumeric character This matches a regular expression: ^a-z?$

For example: when DAIEngineVersion with name "workspaces/global/daiEngineVersions/1.11.1" has aliases={"latest", "prerelease"}, then "workspaces/global/daiEngineVersions/latest" will refer to this DAIEngineVersion.

imagestring required

Name of the Docker image used when using this DAIEngineVersion.

imagePullPolicy'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.

  • IMAGE_PULL_POLICY_UNSPECIFIED: Unspecified image pull policy.
  • IMAGE_PULL_POLICY_ALWAYS: Every time the container is launched, the container image registry is queried to resolve the name to an image digest.
  • IMAGE_PULL_POLICY_NEVER: Do not try to fetch the image. If the image is already present locally, the container will start. If the image is not present, container startup will fail.
  • IMAGE_PULL_POLICY_IF_NOT_PRESENT: The image is pulled only if it is not already present locally.
imagePullSecretsstring[]

List of references to k8s secrets that can be used for pulling an image of this DAIEngineVersion from a private container image registry or repository.

createTimestring date-time

Output only. Time when the DAIEngineVersion was created.

updateTimestring date-time nullable

Output only. Time when the DAIEngineVersion was last updated.

creatorstring

Output only. Name of entity that created the DAIEngineVersion.

updaterstring

Output only. Name of entity that last updated the DAIEngineVersion.

creatorDisplayNamestring

Output only. Human-readable name of entity that created the DAIEngineVersion.

updaterDisplayNamestring

Output only. Human-readable name of entity that last updated the DAIEngineVersion.

Response

A successful response.

Changes

No recorded changes to this operation across all 1 revision of this API.