<commit_before>module MMS

  class Resource::RestoreJob < Resource

    attr_accessor :name
    attr_accessor :cluster

    attr_accessor :snapshot_id
    attr_accessor :created
    attr_accessor :status_name
    attr_accessor :point_in_time
    attr_accessor :delivery_method_name
    attr_accessor :delivery_status_name
    attr_accessor :delivery_url


    def initialize(id, snapshot_id, cluster_id, group_id, data = nil)
      @cluster = MMS::Resource::Cluster.new cluster_id, group_id

      super id, data
    end

    def _load(id)
      MMS::Client.instance.get('/groups/' + @cluster.group.id + '/clusters/' + @cluster.id + '/restoreJobs/' + id.to_s)
    end

    def _from_hash(data)
      @snapshot_id = data['snapshotId']
      @created = data['created']
      @status_name = data['statusName']
      @point_in_time = data['pointInTime']
      @delivery_method_name = data['delivery']['methodName']
      @delivery_status_name = data['delivery']['statusName']
      @delivery_url = data['delivery']['url']<commit_msg>REmoved snapshot_id from restorejob params<commit_after>module MMS

  class Resource::RestoreJob < Resource

    attr_accessor :name
    attr_accessor :cluster

    attr_accessor :snapshot_id
    attr_accessor :created
    attr_accessor :status_name
    attr_accessor :point_in_time
    attr_accessor :delivery_method_name
    attr_accessor :delivery_status_name
    attr_accessor :delivery_url

    def initialize(id, cluster_id, group_id, data = nil)
      @cluster = MMS::Resource::Cluster.new cluster_id, group_id

      super id, data
    end

    def _load(id)
      MMS::Client.instance.get('/groups/' + @cluster.group.id + '/clusters/' + @cluster.id + '/restoreJobs/' + id.to_s)
    end

    def _from_hash(data)
      @snapshot_id = data['snapshotId']
      @created = data['created']
      @status_name = data['statusName']
      @point_in_time = data['pointInTime']
      @delivery_method_name = data['delivery']['methodName']
      @delivery_status_name = data['delivery']['statusName']
      @delivery_url = data['delivery']['url']
{'fraction_non_alphanumeric': 0.11336227689339122, 'fraction_numerical': 0.0, 'mean_word_length': 3.767816091954023, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3722149', 'n_tokens_mistral': 679, 'n_tokens_neox': 669, 'n_words': 128}