# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::MachineLearningServices::Mgmt::V2018_11_19
  module Models
    #
    # Secrets related to a Machine Learning compute. Might differ for every
    # type of compute.
    #
    class ComputeSecrets

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["AKS"] = "AksComputeSecrets"
      @@discriminatorMap["VirtualMachine"] = "VirtualMachineSecrets"
      @@discriminatorMap["Databricks"] = "DatabricksComputeSecrets"

      def initialize
        @computeType = "ComputeSecrets"
      end

      attr_accessor :computeType


      #
      # Mapper for ComputeSecrets class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ComputeSecrets',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'computeType',
            uber_parent: 'ComputeSecrets',
            class_name: 'ComputeSecrets',
            model_properties: {
            }
          }
        }
      end
    end
  end
end
