SiteSourceControlInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. appservice. models. ProxyOnlyResource - com.
azure. resourcemanager. appservice. fluent. models. SiteSourceControlInner
- com.
- com.
- com.
public final class SiteSourceControlInner
extends ProxyOnlyResource
Source control configuration for an app.
Constructor Summary
Constructor | Description |
---|---|
SiteSourceControlInner() |
Creates an instance of Site |
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 deployment |
static
Site |
fromJson(JsonReader jsonReader)
Reads an instance of Site |
Git |
gitHubActionConfiguration()
Get the git |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Boolean |
isGitHubAction()
Get the is |
Boolean |
isManualIntegration()
Get the is |
Boolean |
isMercurial()
Get the is |
String |
name()
Get the name property: The name of the resource. |
String |
repoUrl()
Get the repo |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Site |
withBranch(String branch)
Set the branch property: Name of branch to use for deployment. |
Site |
withDeploymentRollbackEnabled(Boolean deploymentRollbackEnabled)
Set the deployment |
Site |
withGitHubActionConfiguration(GitHubActionConfiguration gitHubActionConfiguration)
Set the git |
Site |
withIsGitHubAction(Boolean isGitHubAction)
Set the is |
Site |
withIsManualIntegration(Boolean isManualIntegration)
Set the is |
Site |
withIsMercurial(Boolean isMercurial)
Set the is |
Site |
withKind(String kind)
Set the kind property: Kind of resource. |
Site |
withRepoUrl(String repoUrl)
Set the repo |
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:
deploymentRollbackEnabled
public Boolean deploymentRollbackEnabled()
Get the deploymentRollbackEnabled property: true
to enable deployment rollback; otherwise, false
.
Returns:
fromJson
public static SiteSourceControlInner fromJson(JsonReader jsonReader)
Reads an instance of SiteSourceControlInner from the JsonReader.
Parameters:
Returns:
Throws:
gitHubActionConfiguration
public GitHubActionConfiguration gitHubActionConfiguration()
Get the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.
Returns:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SiteSourceControlInner.id()Returns:
isGitHubAction
public Boolean isGitHubAction()
Get the isGitHubAction property: true
if this is deployed via GitHub action.
Returns:
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:
isMercurial
public Boolean isMercurial()
Get the isMercurial property: true
for a Mercurial repository; false
for a Git repository.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SiteSourceControlInner.name()Returns:
repoUrl
public String repoUrl()
Get the repoUrl property: Repository or source control URL.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SiteSourceControlInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SiteSourceControlInner.type()Returns:
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:
Returns:
withDeploymentRollbackEnabled
public SiteSourceControlInner withDeploymentRollbackEnabled(Boolean deploymentRollbackEnabled)
Set the deploymentRollbackEnabled property: true
to enable deployment rollback; otherwise, false
.
Parameters:
Returns:
withGitHubActionConfiguration
public SiteSourceControlInner withGitHubActionConfiguration(GitHubActionConfiguration gitHubActionConfiguration)
Set the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.
Parameters:
Returns:
withIsGitHubAction
public SiteSourceControlInner withIsGitHubAction(Boolean isGitHubAction)
Set the isGitHubAction property: true
if this is deployed via GitHub action.
Parameters:
Returns:
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:
Returns:
withIsMercurial
public SiteSourceControlInner withIsMercurial(Boolean isMercurial)
Set the isMercurial property: true
for a Mercurial repository; false
for a Git repository.
Parameters:
Returns:
withKind
public SiteSourceControlInner withKind(String kind)
Set the kind property: Kind of resource.
Overrides:
SiteSourceControlInner.withKind(String kind)Parameters:
withRepoUrl
public SiteSourceControlInner withRepoUrl(String repoUrl)
Set the repoUrl property: Repository or source control URL.
Parameters:
Returns:
Applies to
Azure SDK for Java