# 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::OperationalInsights::Mgmt::V2020_03_01_preview
  module Models
    #
    # Linked storage accounts top level resource container.
    #
    class LinkedStorageAccountsResource < ProxyResource

      include MsRestAzure

      # @return [DataSourceType] Linked storage accounts type. Possible values
      # include: 'CustomLogs', 'AzureWatson', 'Query', 'Ingestion', 'Alerts'
      attr_accessor :data_source_type

      # @return [Array<String>] Linked storage accounts resources ids.
      attr_accessor :storage_account_ids


      #
      # Mapper for LinkedStorageAccountsResource class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'LinkedStorageAccountsResource',
          type: {
            name: 'Composite',
            class_name: 'LinkedStorageAccountsResource',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              data_source_type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.dataSourceType',
                type: {
                  name: 'Enum',
                  module: 'DataSourceType'
                }
              },
              storage_account_ids: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.storageAccountIds',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
