// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.machinelearningservices.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.machinelearningservices.models.AksComputeSecrets;
import com.azure.resourcemanager.machinelearningservices.models.DatabricksComputeSecrets;
import com.azure.resourcemanager.machinelearningservices.models.VirtualMachineSecrets;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Secrets related to a Machine Learning compute. Might differ for every type of compute. */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "computeType",
    defaultImpl = ComputeSecretsInner.class)
@JsonTypeName("ComputeSecrets")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "AKS", value = AksComputeSecrets.class),
    @JsonSubTypes.Type(name = "VirtualMachine", value = VirtualMachineSecrets.class),
    @JsonSubTypes.Type(name = "Databricks", value = DatabricksComputeSecrets.class)
})
@Immutable
public class ComputeSecretsInner {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(ComputeSecretsInner.class);

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
