Class: PEClient::Resource::NodeClassifierV1::ImportHierarchy
- Defined in:
- lib/pe_client/resources/node_classifier.v1/import_hierarchy.rb
Overview
Use the import hierarchy endpoint to delete all existing node groups from the node classifier service and replace them with the node groups defined in the body of the request.
Constant Summary collapse
- BASE_PATH =
The base path for Node Classifier API v1 import hierarchy endpoints.
"#{NodeClassifierV1::BASE_PATH}/import-hierarchy".freeze
Instance Method Summary collapse
-
#replace(name:, environment:, environment_trumps:, parent:, rule:, config_data:, description: "", variables: {}, classes: {}) ⇒ Hash
Delete all existing node groups from the node classifier service and replace them with the node groups defined in the body of the submitted request.
Methods inherited from Base
Constructor Details
This class inherits a constructor from PEClient::Resource::Base
Instance Method Details
#replace(name:, environment:, environment_trumps:, parent:, rule:, config_data:, description: "", variables: {}, classes: {}) ⇒ Hash
Delete all existing node groups from the node classifier service and replace them with the node groups defined in the body of the submitted request.
52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/pe_client/resources/node_classifier.v1/import_hierarchy.rb', line 52 def replace(name:, environment:, environment_trumps:, parent:, rule:, config_data:, description: "", variables: {}, classes: {}) @client.post BASE_PATH, body: { name:, environment:, environment_trumps:, parent:, rule:, config_data:, description:, variables:, classes: } end |