# 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::Synapse::Mgmt::V2019_06_01_preview
  module Models
    #
    # Git integration settings
    #
    class WorkspaceRepositoryConfiguration

      include MsRestAzure

      # @return [String] Type of workspace repositoryID configuration. Example
      # WorkspaceVSTSConfiguration, WorkspaceGitHubConfiguration
      attr_accessor :type

      # @return [String] GitHub Enterprise host name. For example:
      # https://github.mydomain.com
      attr_accessor :host_name

      # @return [String] Account name
      attr_accessor :account_name

      # @return [String] VSTS project name
      attr_accessor :project_name

      # @return [String] Repository name
      attr_accessor :repository_name

      # @return [String] Collaboration branch
      attr_accessor :collaboration_branch

      # @return [String] Root folder to use in the repository
      attr_accessor :root_folder


      #
      # Mapper for WorkspaceRepositoryConfiguration class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'WorkspaceRepositoryConfiguration',
          type: {
            name: 'Composite',
            class_name: 'WorkspaceRepositoryConfiguration',
            model_properties: {
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              host_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'hostName',
                type: {
                  name: 'String'
                }
              },
              account_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'accountName',
                type: {
                  name: 'String'
                }
              },
              project_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'projectName',
                type: {
                  name: 'String'
                }
              },
              repository_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'repositoryName',
                type: {
                  name: 'String'
                }
              },
              collaboration_branch: {
                client_side_validation: true,
                required: false,
                serialized_name: 'collaborationBranch',
                type: {
                  name: 'String'
                }
              },
              root_folder: {
                client_side_validation: true,
                required: false,
                serialized_name: 'rootFolder',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
