GithubActionConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.appcontainers.models.GithubActionConfiguration

Implements

public final class GithubActionConfiguration
implements JsonSerializable<GithubActionConfiguration>

Configuration properties that define the mutable settings of a Container App SourceControl.

Constructor Summary

Constructor Description
GithubActionConfiguration()

Creates an instance of GithubActionConfiguration class.

Method Summary

Modifier and Type Method and Description
AzureCredentials azureCredentials()

Get the azureCredentials property: AzureCredentials configurations.

String contextPath()

Get the contextPath property: Context path.

static GithubActionConfiguration fromJson(JsonReader jsonReader)

Reads an instance of GithubActionConfiguration from the JsonReader.

String githubPersonalAccessToken()

Get the githubPersonalAccessToken property: One time Github PAT to configure github environment.

String image()

Get the image property: Image name.

String os()

Get the os property: Operation system.

String publishType()

Get the publishType property: Code or Image.

RegistryInfo registryInfo()

Get the registryInfo property: Registry configurations.

String runtimeStack()

Get the runtimeStack property: Runtime stack.

String runtimeVersion()

Get the runtimeVersion property: Runtime version.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GithubActionConfiguration withAzureCredentials(AzureCredentials azureCredentials)

Set the azureCredentials property: AzureCredentials configurations.

GithubActionConfiguration withContextPath(String contextPath)

Set the contextPath property: Context path.

GithubActionConfiguration withGithubPersonalAccessToken(String githubPersonalAccessToken)

Set the githubPersonalAccessToken property: One time Github PAT to configure github environment.

GithubActionConfiguration withImage(String image)

Set the image property: Image name.

GithubActionConfiguration withOs(String os)

Set the os property: Operation system.

GithubActionConfiguration withPublishType(String publishType)

Set the publishType property: Code or Image.

GithubActionConfiguration withRegistryInfo(RegistryInfo registryInfo)

Set the registryInfo property: Registry configurations.

GithubActionConfiguration withRuntimeStack(String runtimeStack)

Set the runtimeStack property: Runtime stack.

GithubActionConfiguration withRuntimeVersion(String runtimeVersion)

Set the runtimeVersion property: Runtime version.

Methods inherited from java.lang.Object

Constructor Details

GithubActionConfiguration

public GithubActionConfiguration()

Creates an instance of GithubActionConfiguration class.

Method Details

azureCredentials

public AzureCredentials azureCredentials()

Get the azureCredentials property: AzureCredentials configurations.

Returns:

the azureCredentials value.

contextPath

public String contextPath()

Get the contextPath property: Context path.

Returns:

the contextPath value.

fromJson

public static GithubActionConfiguration fromJson(JsonReader jsonReader)

Reads an instance of GithubActionConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GithubActionConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the GithubActionConfiguration.

githubPersonalAccessToken

public String githubPersonalAccessToken()

Get the githubPersonalAccessToken property: One time Github PAT to configure github environment.

Returns:

the githubPersonalAccessToken value.

image

public String image()

Get the image property: Image name.

Returns:

the image value.

os

public String os()

Get the os property: Operation system.

Returns:

the os value.

publishType

public String publishType()

Get the publishType property: Code or Image.

Returns:

the publishType value.

registryInfo

public RegistryInfo registryInfo()

Get the registryInfo property: Registry configurations.

Returns:

the registryInfo value.

runtimeStack

public String runtimeStack()

Get the runtimeStack property: Runtime stack.

Returns:

the runtimeStack value.

runtimeVersion

public String runtimeVersion()

Get the runtimeVersion property: Runtime version.

Returns:

the runtimeVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAzureCredentials

public GithubActionConfiguration withAzureCredentials(AzureCredentials azureCredentials)

Set the azureCredentials property: AzureCredentials configurations.

Parameters:

azureCredentials - the azureCredentials value to set.

Returns:

the GithubActionConfiguration object itself.

withContextPath

public GithubActionConfiguration withContextPath(String contextPath)

Set the contextPath property: Context path.

Parameters:

contextPath - the contextPath value to set.

Returns:

the GithubActionConfiguration object itself.

withGithubPersonalAccessToken

public GithubActionConfiguration withGithubPersonalAccessToken(String githubPersonalAccessToken)

Set the githubPersonalAccessToken property: One time Github PAT to configure github environment.

Parameters:

githubPersonalAccessToken - the githubPersonalAccessToken value to set.

Returns:

the GithubActionConfiguration object itself.

withImage

public GithubActionConfiguration withImage(String image)

Set the image property: Image name.

Parameters:

image - the image value to set.

Returns:

the GithubActionConfiguration object itself.

withOs

public GithubActionConfiguration withOs(String os)

Set the os property: Operation system.

Parameters:

os - the os value to set.

Returns:

the GithubActionConfiguration object itself.

withPublishType

public GithubActionConfiguration withPublishType(String publishType)

Set the publishType property: Code or Image.

Parameters:

publishType - the publishType value to set.

Returns:

the GithubActionConfiguration object itself.

withRegistryInfo

public GithubActionConfiguration withRegistryInfo(RegistryInfo registryInfo)

Set the registryInfo property: Registry configurations.

Parameters:

registryInfo - the registryInfo value to set.

Returns:

the GithubActionConfiguration object itself.

withRuntimeStack

public GithubActionConfiguration withRuntimeStack(String runtimeStack)

Set the runtimeStack property: Runtime stack.

Parameters:

runtimeStack - the runtimeStack value to set.

Returns:

the GithubActionConfiguration object itself.

withRuntimeVersion

public GithubActionConfiguration withRuntimeVersion(String runtimeVersion)

Set the runtimeVersion property: Runtime version.

Parameters:

runtimeVersion - the runtimeVersion value to set.

Returns:

the GithubActionConfiguration object itself.

Applies to