Class GitRepositoryPatchDefinition
- java.lang.Object
-
- com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryPatchDefinition
-
public final class GitRepositoryPatchDefinition extends Object
Parameters to reconcile to the GitRepository source kind type.
-
-
Constructor Summary
Constructors Constructor Description GitRepositoryPatchDefinition()
-
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.GitRepositoryPatchDefinition
withHttpsCACert(String httpsCACert)
Set the httpsCACert property: Base64-encoded HTTPS certificate authority contents used to access git private git repositories over HTTPS.GitRepositoryPatchDefinition
withHttpsUser(String httpsUser)
Set the httpsUser property: Plaintext HTTPS username used to access private git repositories over HTTPS.GitRepositoryPatchDefinition
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.GitRepositoryPatchDefinition
withRepositoryRef(RepositoryRefDefinition repositoryRef)
Set the repositoryRef property: The source reference for the GitRepository object.GitRepositoryPatchDefinition
withSshKnownHosts(String sshKnownHosts)
Set the sshKnownHosts property: Base64-encoded known_hosts value containing public SSH keys required to access private git repositories over SSH.GitRepositoryPatchDefinition
withSyncIntervalInSeconds(Long syncIntervalInSeconds)
Set the syncIntervalInSeconds property: The interval at which to re-reconcile the cluster git repository source with the remote.GitRepositoryPatchDefinition
withTimeoutInSeconds(Long timeoutInSeconds)
Set the timeoutInSeconds property: The maximum time to attempt to reconcile the cluster git repository source with the remote.GitRepositoryPatchDefinition
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 GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition object itself.
-
repositoryRef
public RepositoryRefDefinition repositoryRef()
Get the repositoryRef property: The source reference for the GitRepository object.- Returns:
- the repositoryRef value.
-
withRepositoryRef
public GitRepositoryPatchDefinition withRepositoryRef(RepositoryRefDefinition repositoryRef)
Set the repositoryRef property: The source reference for the GitRepository object.- Parameters:
repositoryRef
- the repositoryRef value to set.- Returns:
- the GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition 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 GitRepositoryPatchDefinition object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-