SiteSourceControlInner Class

public final class SiteSourceControlInner
extends ProxyOnlyResource

Source control configuration for an app.

Constructor Summary

Constructor Description
SiteSourceControlInner()

Creates an instance of SiteSourceControlInner class.

Method Summary

Modifier and Type Method and Description
String branch()

Get the branch property: Name of branch to use for deployment.

Boolean deploymentRollbackEnabled()

Get the deploymentRollbackEnabled property: true to enable deployment rollback; otherwise, false.

static SiteSourceControlInner fromJson(JsonReader jsonReader)

Reads an instance of SiteSourceControlInner from the JsonReader.

GitHubActionConfiguration gitHubActionConfiguration()

Get the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.

String id()

Get the id property: Fully qualified resource Id for the resource.

Boolean isGitHubAction()

Get the isGitHubAction property: true if this is deployed via GitHub action.

Boolean isManualIntegration()

Get the isManualIntegration property: true to limit to manual integration; false to enable continuous integration (which configures webhooks into online repos like GitHub).

Boolean isMercurial()

Get the isMercurial property: true for a Mercurial repository; false for a Git repository.

String name()

Get the name property: The name of the resource.

String repoUrl()

Get the repoUrl property: Repository or source control URL.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SiteSourceControlInner withBranch(String branch)

Set the branch property: Name of branch to use for deployment.

SiteSourceControlInner withDeploymentRollbackEnabled(Boolean deploymentRollbackEnabled)

Set the deploymentRollbackEnabled property: true to enable deployment rollback; otherwise, false.

SiteSourceControlInner withGitHubActionConfiguration(GitHubActionConfiguration gitHubActionConfiguration)

Set the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.

SiteSourceControlInner withIsGitHubAction(Boolean isGitHubAction)

Set the isGitHubAction property: true if this is deployed via GitHub action.

SiteSourceControlInner withIsManualIntegration(Boolean isManualIntegration)

Set the isManualIntegration property: true to limit to manual integration; false to enable continuous integration (which configures webhooks into online repos like GitHub).

SiteSourceControlInner withIsMercurial(Boolean isMercurial)

Set the isMercurial property: true for a Mercurial repository; false for a Git repository.

SiteSourceControlInner withKind(String kind)

Set the kind property: Kind of resource.

SiteSourceControlInner withRepoUrl(String repoUrl)

Set the repoUrl property: Repository or source control URL.

Methods inherited from ProxyOnlyResource

Methods inherited from java.lang.Object

Constructor Details

SiteSourceControlInner

public SiteSourceControlInner()

Creates an instance of SiteSourceControlInner class.

Method Details

branch

public String branch()

Get the branch property: Name of branch to use for deployment.

Returns:

the branch value.

deploymentRollbackEnabled

public Boolean deploymentRollbackEnabled()

Get the deploymentRollbackEnabled property: true to enable deployment rollback; otherwise, false.

Returns:

the deploymentRollbackEnabled value.

fromJson

public static SiteSourceControlInner fromJson(JsonReader jsonReader)

Reads an instance of SiteSourceControlInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

gitHubActionConfiguration

public GitHubActionConfiguration gitHubActionConfiguration()

Get the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.

Returns:

the gitHubActionConfiguration value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SiteSourceControlInner.id()

Returns:

the id value.

isGitHubAction

public Boolean isGitHubAction()

Get the isGitHubAction property: true if this is deployed via GitHub action.

Returns:

the isGitHubAction value.

isManualIntegration

public Boolean isManualIntegration()

Get the isManualIntegration property: true to limit to manual integration; false to enable continuous integration (which configures webhooks into online repos like GitHub).

Returns:

the isManualIntegration value.

isMercurial

public Boolean isMercurial()

Get the isMercurial property: true for a Mercurial repository; false for a Git repository.

Returns:

the isMercurial value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SiteSourceControlInner.name()

Returns:

the name value.

repoUrl

public String repoUrl()

Get the repoUrl property: Repository or source control URL.

Returns:

the repoUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SiteSourceControlInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SiteSourceControlInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

SiteSourceControlInner.validate()

withBranch

public SiteSourceControlInner withBranch(String branch)

Set the branch property: Name of branch to use for deployment.

Parameters:

branch - the branch value to set.

Returns:

the SiteSourceControlInner object itself.

withDeploymentRollbackEnabled

public SiteSourceControlInner withDeploymentRollbackEnabled(Boolean deploymentRollbackEnabled)

Set the deploymentRollbackEnabled property: true to enable deployment rollback; otherwise, false.

Parameters:

deploymentRollbackEnabled - the deploymentRollbackEnabled value to set.

Returns:

the SiteSourceControlInner object itself.

withGitHubActionConfiguration

public SiteSourceControlInner withGitHubActionConfiguration(GitHubActionConfiguration gitHubActionConfiguration)

Set the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.

Parameters:

gitHubActionConfiguration - the gitHubActionConfiguration value to set.

Returns:

the SiteSourceControlInner object itself.

withIsGitHubAction

public SiteSourceControlInner withIsGitHubAction(Boolean isGitHubAction)

Set the isGitHubAction property: true if this is deployed via GitHub action.

Parameters:

isGitHubAction - the isGitHubAction value to set.

Returns:

the SiteSourceControlInner object itself.

withIsManualIntegration

public SiteSourceControlInner withIsManualIntegration(Boolean isManualIntegration)

Set the isManualIntegration property: true to limit to manual integration; false to enable continuous integration (which configures webhooks into online repos like GitHub).

Parameters:

isManualIntegration - the isManualIntegration value to set.

Returns:

the SiteSourceControlInner object itself.

withIsMercurial

public SiteSourceControlInner withIsMercurial(Boolean isMercurial)

Set the isMercurial property: true for a Mercurial repository; false for a Git repository.

Parameters:

isMercurial - the isMercurial value to set.

Returns:

the SiteSourceControlInner object itself.

withKind

public SiteSourceControlInner withKind(String kind)

Set the kind property: Kind of resource.

Overrides:

SiteSourceControlInner.withKind(String kind)

Parameters:

kind

withRepoUrl

public SiteSourceControlInner withRepoUrl(String repoUrl)

Set the repoUrl property: Repository or source control URL.

Parameters:

repoUrl - the repoUrl value to set.

Returns:

the SiteSourceControlInner object itself.

Applies to