Class GitRepositoryDefinition
- java.lang.Object
-
- com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryDefinition
-
public final class GitRepositoryDefinition extends Object
Parameters to reconcile to the GitRepository source kind type.
-
-
Constructor Summary
Constructors Constructor Description GitRepositoryDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
httpsCACert()
Get the httpsCACert property: Base64-encoded HTTPS certificate authority contents used to access git private git repositories over HTTPS.String
httpsUser()
Get the httpsUser property: Plaintext HTTPS username used to access private git repositories over HTTPS.String
localAuthRef()
Get the localAuthRef property: Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets.RepositoryRefDefinition
repositoryRef()
Get the repositoryRef property: The source reference for the GitRepository object.String
sshKnownHosts()
Get the sshKnownHosts property: Base64-encoded known_hosts value containing public SSH keys required to access private git repositories over SSH.Long
syncIntervalInSeconds()
Get the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster git repository source with the remote.Long
timeoutInSeconds()
Get the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster git repository source with the remote.String
url()
Get the url property: The URL to sync for the flux configuration git repository.void
validate()
Validates the instance.GitRepositoryDefinition
withHttpsCACert(String httpsCACert)
Set the httpsCACert property: Base64-encoded HTTPS certificate authority contents used to access git private git repositories over HTTPS.GitRepositoryDefinition
withHttpsUser(String httpsUser)
Set the httpsUser property: Plaintext HTTPS username used to access private git repositories over HTTPS.GitRepositoryDefinition
withLocalAuthRef(String localAuthRef)
Set the localAuthRef property: Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets.GitRepositoryDefinition
withRepositoryRef(RepositoryRefDefinition repositoryRef)
Set the repositoryRef property: The source reference for the GitRepository object.GitRepositoryDefinition
withSshKnownHosts(String sshKnownHosts)
Set the sshKnownHosts property: Base64-encoded known_hosts value containing public SSH keys required to access private git repositories over SSH.GitRepositoryDefinition
withSyncIntervalInSeconds(Long syncIntervalInSeconds)
Set the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster git repository source with the remote.GitRepositoryDefinition
withTimeoutInSeconds(Long timeoutInSeconds)
Set the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster git repository source with the remote.GitRepositoryDefinition
withUrl(String url)
Set the url property: The URL to sync for the flux configuration git repository.
-
-
-
Method Detail
-
url
public String url()
Get the url property: The URL to sync for the flux configuration git repository.- Returns:
- the url value.
-
withUrl
public GitRepositoryDefinition withUrl(String url)
Set the url property: The URL to sync for the flux configuration git repository.- Parameters:
url
- the url value to set.- Returns:
- the GitRepositoryDefinition object itself.
-
timeoutInSeconds
public Long timeoutInSeconds()
Get the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster git repository source with the remote.- Returns:
- the timeoutInSeconds value.
-
withTimeoutInSeconds
public GitRepositoryDefinition withTimeoutInSeconds(Long timeoutInSeconds)
Set the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster git repository source with the remote.- Parameters:
timeoutInSeconds
- the timeoutInSeconds value to set.- Returns:
- the GitRepositoryDefinition object itself.
-
syncIntervalInSeconds
public Long syncIntervalInSeconds()
Get the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster git repository source with the remote.- Returns:
- the syncIntervalInSeconds value.
-
withSyncIntervalInSeconds
public GitRepositoryDefinition withSyncIntervalInSeconds(Long syncIntervalInSeconds)
Set the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster git repository source with the remote.- Parameters:
syncIntervalInSeconds
- the syncIntervalInSeconds value to set.- Returns:
- the GitRepositoryDefinition object itself.
-
repositoryRef
public RepositoryRefDefinition repositoryRef()
Get the repositoryRef property: The source reference for the GitRepository object.- Returns:
- the repositoryRef value.
-
withRepositoryRef
public GitRepositoryDefinition withRepositoryRef(RepositoryRefDefinition repositoryRef)
Set the repositoryRef property: The source reference for the GitRepository object.- Parameters:
repositoryRef
- the repositoryRef value to set.- Returns:
- the GitRepositoryDefinition object itself.
-
sshKnownHosts
public String sshKnownHosts()
Get the sshKnownHosts property: Base64-encoded known_hosts value containing public SSH keys required to access private git repositories over SSH.- Returns:
- the sshKnownHosts value.
-
withSshKnownHosts
public GitRepositoryDefinition withSshKnownHosts(String sshKnownHosts)
Set the sshKnownHosts property: Base64-encoded known_hosts value containing public SSH keys required to access private git repositories over SSH.- Parameters:
sshKnownHosts
- the sshKnownHosts value to set.- Returns:
- the GitRepositoryDefinition object itself.
-
httpsUser
public String httpsUser()
Get the httpsUser property: Plaintext HTTPS username used to access private git repositories over HTTPS.- Returns:
- the httpsUser value.
-
withHttpsUser
public GitRepositoryDefinition withHttpsUser(String httpsUser)
Set the httpsUser property: Plaintext HTTPS username used to access private git repositories over HTTPS.- Parameters:
httpsUser
- the httpsUser value to set.- Returns:
- the GitRepositoryDefinition object itself.
-
httpsCACert
public String httpsCACert()
Get the httpsCACert property: Base64-encoded HTTPS certificate authority contents used to access git private git repositories over HTTPS.- Returns:
- the httpsCACert value.
-
withHttpsCACert
public GitRepositoryDefinition withHttpsCACert(String httpsCACert)
Set the httpsCACert property: Base64-encoded HTTPS certificate authority contents used to access git private git repositories over HTTPS.- Parameters:
httpsCACert
- the httpsCACert value to set.- Returns:
- the GitRepositoryDefinition object itself.
-
localAuthRef
public String localAuthRef()
Get the localAuthRef property: Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets.- Returns:
- the localAuthRef value.
-
withLocalAuthRef
public GitRepositoryDefinition withLocalAuthRef(String localAuthRef)
Set the localAuthRef property: Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets.- Parameters:
localAuthRef
- the localAuthRef value to set.- Returns:
- the GitRepositoryDefinition object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-