CodeDependencyResolution Class

public final class CodeDependencyResolution
extends ExpandableStringEnum<CodeDependencyResolution>

How package dependencies are resolved at deployment time for a code-based hosted agent.

Field Summary

Modifier and Type Field and Description
static final CodeDependencyResolution BUNDLED

The caller has bundled all dependencies into the uploaded zip; the service performs no remote build.

static final CodeDependencyResolution REMOTE_BUILD

The service builds dependencies remotely from the manifest included in the uploaded zip.

Constructor Summary

Constructor Description
CodeDependencyResolution()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of CodeDependencyResolution value.

Method Summary

Modifier and Type Method and Description
static CodeDependencyResolution fromString(String name)

Creates or finds a CodeDependencyResolution from its string representation.

static Collection<CodeDependencyResolution> values()

Gets known CodeDependencyResolution values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BUNDLED

public static final CodeDependencyResolution BUNDLED

The caller has bundled all dependencies into the uploaded zip; the service performs no remote build.

REMOTE_BUILD

public static final CodeDependencyResolution REMOTE_BUILD

The service builds dependencies remotely from the manifest included in the uploaded zip.

Constructor Details

CodeDependencyResolution

@Deprecated
public CodeDependencyResolution()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of CodeDependencyResolution value.

Method Details

fromString

public static CodeDependencyResolution fromString(String name)

Creates or finds a CodeDependencyResolution from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding CodeDependencyResolution.

values

public static Collection<CodeDependencyResolution> values()

Gets known CodeDependencyResolution values.

Returns:

known CodeDependencyResolution values.

Applies to