# 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::BotService::Mgmt::V2018_07_12_preview
  module Models
    #
    # The parameters to provide for the Enterprise Channel.
    #
    class EnterpriseChannelProperties

      include MsRestAzure

      # @return [EnterpriseChannelState] The current state of the Enterprise
      # Channel. Possible values include: 'Creating', 'CreateFailed',
      # 'Started', 'Starting', 'StartFailed', 'Stopped', 'Stopping',
      # 'StopFailed', 'Deleting', 'DeleteFailed'
      attr_accessor :state

      # @return [Array<EnterpriseChannelNode>] The nodes associated with the
      # Enterprise Channel.
      attr_accessor :nodes


      #
      # Mapper for EnterpriseChannelProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'EnterpriseChannelProperties',
          type: {
            name: 'Composite',
            class_name: 'EnterpriseChannelProperties',
            model_properties: {
              state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'state',
                type: {
                  name: 'String'
                }
              },
              nodes: {
                client_side_validation: true,
                required: true,
                serialized_name: 'nodes',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'EnterpriseChannelNodeElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'EnterpriseChannelNode'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
