Class: Scaled::Resources::Acl
- Inherits:
-
Object
- Object
- Scaled::Resources::Acl
- Defined in:
- lib/scaled/resources/acl.rb
Overview
API wrapper for the tailnet policy file (ACL). API-обгортка для policy-файлу tailnet (ACL).
Instance Method Summary collapse
-
#get(query: nil) ⇒ Hash, ...
Note: read-only; returns the current ACL/policy document for the tailnet.
- #initialize(client) ⇒ void constructor
Constructor Details
#initialize(client) ⇒ void
10 11 12 |
# File 'lib/scaled/resources/acl.rb', line 10 def initialize(client) @client = client end |
Instance Method Details
#get(query: nil) ⇒ Hash, ...
Note: read-only; returns the current ACL/policy document for the tailnet. Нотатка: read-only; повертає поточний policy-файл (ACL) для tailnet.
18 19 20 |
# File 'lib/scaled/resources/acl.rb', line 18 def get(query: nil) @client.get("/tailnet/#{@client.tailnet}/acl", query: query) end |