DAIEngineVersionService

Assign new set of resourceID aliases to DAIEngineVersion. This will replace existing DAIEngineVersion resourceID aliases with the new aliases. If there are other DAIEngineVersions with the same alias that we try to assign to this DAIEngineVersion, they will be deleted from the other DAIEngineVersions.

Example 1 - two versions in the same workspace:

  • daiw1v1(name="workspaces/w1/daiEngineVersions/v1", aliases=["latest", "bar"])
  • daiw1v2(name="workspaces/w1/daiEngineVersions/v2", aliases=["baz", "foo"])
  • AssignAliases(daiw1v1, aliases=["latest", "baz"]) => daiw1v1.aliases=["latest", "baz"] (changed) => daiw1v2.aliases=["foo"] (changed)

Example 2 - two versions in different workspaces:

  • daiw1v1(name="workspaces/w1/daiEngineVersions/v1", aliases=["latest", "bar"])
  • daiw2v1(name="workspaces/w2/daiEngineVersions/v1", aliases=["latest", "baz"])
  • AssignAliases(daiw1v1, aliases=["latest", "baz"]) => daiw1v1.aliases=["latest", "baz"] (changed) => daiw2v1.aliases=["latest", "baz"] (unchanged)
post/v1/{name}:assignAliases

Request

Path parameters

namestring required

DAIEngineVersion resource name. Format: workspaces/{workspace}/daiEngineVersions/{dai_engine_version}

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

  • actions/enginemanager/daiEngineVersions/ASSIGN_ALIASES

Request body

aliasesstring[] required

New resourceID aliases of the DAIEngineVersion.

Response

A successful response.

Changes

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