dblock/slack-ruby-client

View on GitHub
bin/commands/admin_audit_anomaly_allow.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
  module Cli
    class App
      desc 'AdminAuditAnomalyAllow methods.'
      command 'admin_audit_anomaly_allow' do |g|
        g.desc 'API to allow enterprise grid admins to read the allow list of IP blocks and ASNs from the enterprise configuration.'
        g.long_desc %( API to allow enterprise grid admins to read the allow list of IP blocks and ASNs from the enterprise configuration. )
        g.command 'getItem' do |c|
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.admin_audit_anomaly_allow_getItem(options))
          end
        end

        g.desc 'API to allow enterprise grid admins to write/overwrite the allow list of IP blocks and ASNs from the enterprise configuration.'
        g.long_desc %( API to allow enterprise grid admins to write/overwrite the allow list of IP blocks and ASNs from the enterprise configuration. )
        g.command 'updateItem' do |c|
          c.flag 'trusted_asns', desc: 'allow list of Autonomous System Numbers (ASN) in the enterprise grid configuarion.'
          c.flag 'trusted_cidr', desc: 'allow list of IPv4 addressses using cidr notation in the enterprise grid configuarion.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.admin_audit_anomaly_allow_updateItem(options))
          end
        end
      end
    end
  end
end