Class: PEClient::Resource::NodeClassifierV1::Rules
- Defined in:
- lib/pe_client/resources/node_classifier.v1/rules.rb
Overview
Use the rules endpoint to translate a node group rule condition into PuppetDB query syntax.
Constant Summary collapse
- BASE_PATH =
The base path for Node Classifier API v1 rules endpoints.
"#{NodeClassifierV1::BASE_PATH}/rules".freeze
Instance Method Summary collapse
-
#translate(format: nil) ⇒ Hash
Translate a node group rule condition into PuppetDB query syntax.
Methods inherited from Base
Constructor Details
This class inherits a constructor from PEClient::Resource::Base
Instance Method Details
#translate(format: nil) ⇒ Hash
Translate a node group rule condition into PuppetDB query syntax.
36 37 38 |
# File 'lib/pe_client/resources/node_classifier.v1/rules.rb', line 36 def translate(format: nil) @client.get "#{BASE_PATH}/translate", params: {format:}.compact end |