<commit_before>require 'puppet/util/network_device'
Puppet::Type.newtype(:netapp_e_snapshot_group) do
  @doc = 'Manage Netapp E series snapshot groups'

  apply_to_device
  ensurable

  newparam(:name, :namevar => true) do
    desc 'The name of the new snapshot group.'
  end

  newproperty(:id, :readonly => true) do
    desc 'Snapshot group ID.'
  end

  newparam(:storagesystem) do<commit_msg>Add validation of required properties<commit_after>require 'puppet/util/network_device'
Puppet::Type.newtype(:netapp_e_snapshot_group) do
  @doc = 'Manage Netapp E series snapshot groups'

  apply_to_device
  ensurable

  validate do
    raise Puppet::Error, 'You must specify a storage system.' unless @parameters.include?(:storagesystem)
    raise Puppet::Error, 'You must specify a volume.' unless @parameters.include?(:volume)
    raise Puppet::Error, 'You must specify a name.' unless @parameters.include?(:name)
    raise Puppet::Error, 'You must specify a warning threshold.' unless @parameters.include?(:warnthreshold)
    raise Puppet::Error, 'You must specify a limit' unless @parameters.include?(:limit)
    raise Puppet::Error, 'You must specify a policy' unless @parameters.include?(:policy)
    raise Puppet::Error, 'You must specify a storage pool' unless @parameters.include?(:storagepool)
  end

  newparam(:name, :namevar => true) do
    desc 'The name of the new snapshot group.'
  end

  newproperty(:id, :readonly => true) do
    desc 'Snapshot group ID.'
  end

  newparam(:storagesystem) do
{'fraction_non_alphanumeric': 0.10669317428760769, 'fraction_numerical': 0.0, 'mean_word_length': 4.763358778625954, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3422079', 'n_tokens_mistral': 466, 'n_tokens_neox': 456, 'n_words': 146}