Class AksComputeSecrets
java.lang.Object
com.azure.resourcemanager.machinelearning.fluent.models.ComputeSecretsInner
com.azure.resourcemanager.machinelearning.models.AksComputeSecrets
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ComputeSecretsInner>
Secrets related to a Machine Learning compute based on AKS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the adminKubeConfig property: Content of kubeconfig file that can be used to connect to the Kubernetes cluster.Get the computeType property: The type of compute.static AksComputeSecretsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AksComputeSecrets from the JsonReader.Get the imagePullSecretName property: Image registry pull secret.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the userKubeConfig property: Content of kubeconfig file that can be used to connect to the Kubernetes cluster.voidvalidate()Validates the instance.withAdminKubeConfig(String adminKubeConfig) Set the adminKubeConfig property: Content of kubeconfig file that can be used to connect to the Kubernetes cluster.withImagePullSecretName(String imagePullSecretName) Set the imagePullSecretName property: Image registry pull secret.withUserKubeConfig(String userKubeConfig) Set the userKubeConfig property: Content of kubeconfig file that can be used to connect to the Kubernetes cluster.Methods inherited from class java.lang.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
-
AksComputeSecrets
public AksComputeSecrets()Creates an instance of AksComputeSecrets class.
-
-
Method Details
-
computeType
Get the computeType property: The type of compute.- Overrides:
computeTypein classComputeSecretsInner- Returns:
- the computeType value.
-
userKubeConfig
Get the userKubeConfig property: Content of kubeconfig file that can be used to connect to the Kubernetes cluster.- Returns:
- the userKubeConfig value.
-
withUserKubeConfig
Set the userKubeConfig property: Content of kubeconfig file that can be used to connect to the Kubernetes cluster.- Parameters:
userKubeConfig- the userKubeConfig value to set.- Returns:
- the AksComputeSecrets object itself.
-
adminKubeConfig
Get the adminKubeConfig property: Content of kubeconfig file that can be used to connect to the Kubernetes cluster.- Returns:
- the adminKubeConfig value.
-
withAdminKubeConfig
Set the adminKubeConfig property: Content of kubeconfig file that can be used to connect to the Kubernetes cluster.- Parameters:
adminKubeConfig- the adminKubeConfig value to set.- Returns:
- the AksComputeSecrets object itself.
-
imagePullSecretName
Get the imagePullSecretName property: Image registry pull secret.- Returns:
- the imagePullSecretName value.
-
withImagePullSecretName
Set the imagePullSecretName property: Image registry pull secret.- Parameters:
imagePullSecretName- the imagePullSecretName value to set.- Returns:
- the AksComputeSecrets object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classComputeSecretsInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ComputeSecretsInner>- Overrides:
toJsonin classComputeSecretsInner- Throws:
IOException
-
fromJson
Reads an instance of AksComputeSecrets from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AksComputeSecrets if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AksComputeSecrets.
-