Class SiteSourceControlInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.appservice.models.ProxyOnlyResource
com.azure.resourcemanager.appservice.fluent.models.SiteSourceControlInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Source control configuration for an app.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SiteSourceControlInner class. -
Method Summary
Modifier and TypeMethodDescriptionbranch()Get the branch property: Name of branch to use for deployment.Get the deploymentRollbackEnabled property: <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.static SiteSourceControlInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SiteSourceControlInner from the JsonReader.Get the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.id()Get the id property: Fully qualified resource Id for the resource.Get the isGitHubAction property: <code>true</code> if this is deployed via GitHub action.Get the isManualIntegration property: <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).Get the isMercurial property: <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.name()Get the name property: The name of the resource.repoUrl()Get the repoUrl property: Repository or source control URL.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withBranch(String branch) Set the branch property: Name of branch to use for deployment.withDeploymentRollbackEnabled(Boolean deploymentRollbackEnabled) Set the deploymentRollbackEnabled property: <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.withGitHubActionConfiguration(GitHubActionConfiguration gitHubActionConfiguration) Set the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.withIsGitHubAction(Boolean isGitHubAction) Set the isGitHubAction property: <code>true</code> if this is deployed via GitHub action.withIsManualIntegration(Boolean isManualIntegration) Set the isManualIntegration property: <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).withIsMercurial(Boolean isMercurial) Set the isMercurial property: <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.Set the kind property: Kind of resource.withRepoUrl(String repoUrl) Set the repoUrl property: Repository or source control URL.Methods inherited from class ProxyOnlyResource
kindMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SiteSourceControlInner
public SiteSourceControlInner()Creates an instance of SiteSourceControlInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classProxyOnlyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classProxyOnlyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classProxyOnlyResource- Returns:
- the id value.
-
withKind
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
repoUrl
Get the repoUrl property: Repository or source control URL.- Returns:
- the repoUrl value.
-
withRepoUrl
Set the repoUrl property: Repository or source control URL.- Parameters:
repoUrl- the repoUrl value to set.- Returns:
- the SiteSourceControlInner object itself.
-
branch
Get the branch property: Name of branch to use for deployment.- Returns:
- the branch value.
-
withBranch
Set the branch property: Name of branch to use for deployment.- Parameters:
branch- the branch value to set.- Returns:
- the SiteSourceControlInner object itself.
-
isManualIntegration
Get the isManualIntegration property: <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).- Returns:
- the isManualIntegration value.
-
withIsManualIntegration
Set the isManualIntegration property: <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).- Parameters:
isManualIntegration- the isManualIntegration value to set.- Returns:
- the SiteSourceControlInner object itself.
-
isGitHubAction
Get the isGitHubAction property: <code>true</code> if this is deployed via GitHub action.- Returns:
- the isGitHubAction value.
-
withIsGitHubAction
Set the isGitHubAction property: <code>true</code> if this is deployed via GitHub action.- Parameters:
isGitHubAction- the isGitHubAction value to set.- Returns:
- the SiteSourceControlInner object itself.
-
deploymentRollbackEnabled
Get the deploymentRollbackEnabled property: <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.- Returns:
- the deploymentRollbackEnabled value.
-
withDeploymentRollbackEnabled
Set the deploymentRollbackEnabled property: <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.- Parameters:
deploymentRollbackEnabled- the deploymentRollbackEnabled value to set.- Returns:
- the SiteSourceControlInner object itself.
-
isMercurial
Get the isMercurial property: <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.- Returns:
- the isMercurial value.
-
withIsMercurial
Set the isMercurial property: <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.- Parameters:
isMercurial- the isMercurial value to set.- Returns:
- the SiteSourceControlInner object itself.
-
gitHubActionConfiguration
Get the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.- Returns:
- the gitHubActionConfiguration value.
-
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.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classProxyOnlyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classProxyOnlyResource- Throws:
IOException
-
fromJson
public static SiteSourceControlInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SiteSourceControlInner.
-