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>

public final class AksComputeSecrets extends ComputeSecretsInner
Secrets related to a Machine Learning compute based on AKS.
  • Constructor Details

    • AksComputeSecrets

      public AksComputeSecrets()
      Creates an instance of AksComputeSecrets class.
  • Method Details

    • computeType

      public ComputeType computeType()
      Get the computeType property: The type of compute.
      Overrides:
      computeType in class ComputeSecretsInner
      Returns:
      the computeType value.
    • userKubeConfig

      public String userKubeConfig()
      Get the userKubeConfig property: Content of kubeconfig file that can be used to connect to the Kubernetes cluster.
      Returns:
      the userKubeConfig value.
    • withUserKubeConfig

      public AksComputeSecrets withUserKubeConfig(String userKubeConfig)
      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

      public String adminKubeConfig()
      Get the adminKubeConfig property: Content of kubeconfig file that can be used to connect to the Kubernetes cluster.
      Returns:
      the adminKubeConfig value.
    • withAdminKubeConfig

      public AksComputeSecrets withAdminKubeConfig(String adminKubeConfig)
      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

      public String imagePullSecretName()
      Get the imagePullSecretName property: Image registry pull secret.
      Returns:
      the imagePullSecretName value.
    • withImagePullSecretName

      public AksComputeSecrets withImagePullSecretName(String imagePullSecretName)
      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:
      validate in class ComputeSecretsInner
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ComputeSecretsInner>
      Overrides:
      toJson in class ComputeSecretsInner
      Throws:
      IOException
    • fromJson

      public static AksComputeSecrets fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.