def succeeded_jobs(options = {})
      batches = Enumerator.new do |y|
        options = options.merge(
          account_id: @account_id,
          vault_name: @name,
          statuscode: "Succeeded"
        )
        resp = @client.list_jobs(options)
        resp.each_page do |page|
          batch = []
          page.data.job_list.each do |j|
            batch << Job.new(
              account_id: @account_id,
              vault_name: @name,
              id: j.job_id,
              data: j,
              client: @client
            )
          end
          y.yield(batch)
        end
      end
      Job::Collection.new(batches)
    end
def succeeded_jobs(options = {})
      batches = Enumerator.new do |y|
        options = options.merge(
          account_id: @account_id,
          vault_name: @name,
          statuscode: "Succeeded"
        )
        resp = @client.list_jobs(options)
        resp.each_page do |page|
          batch = []
          page.data.job_list.each do |j|
            batch << Job.new(
              account_id: @account_id,
              vault_name: @name,
              id: j.job_id,
              data: j,
              client: @client
            )
          end
          y.yield(batch)
        end
      end
      Job::Collection.new(batches)
    end
@example Request syntax with placeholder values

   succeeded_jobs = vault.succeeded_jobs({
     completed: "string",
   })
 @param [Hash] options ({})
 @option options [String] :completed
   The state of the jobs to return. You can specify `true` or `false`.
 @return [Job::Collection]