Class: ThreeScaleToolbox::Commands::PlansCommand::Import::ValidatePlanStep

Inherits:
Object
  • Object
show all
Includes:
Step
Defined in:
lib/3scale_toolbox/commands/plans_command/import/validate_plan_step.rb

Instance Attribute Summary

Attributes included from Step

#context

Instance Method Summary collapse

Methods included from Step

#artifacts_resource, #file, #find_feature_by_system_name, #initialize, #plan, #plan_system_name, #resource_backend_methods, #resource_backend_metrics, #resource_features, #resource_limits, #resource_methods, #resource_metrics, #resource_plan, #resource_pricing_rules, #resource_product_methods, #resource_product_metrics, #result, #service, #service_features, #service_system_name, #threescale_client

Instance Method Details

#callObject

Creates if it does not exist, updates otherwise



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/3scale_toolbox/commands/plans_command/import/validate_plan_step.rb', line 9

def call
  validate_product_metric_method_uniqueness!

  validate_backend_metric_method_uniqueness!

  validate_product_backend_usage_references!

  validate_limit_backend_references!

  validate_limit_product_references!

  validate_pricingrule_backend_references!

  validate_pricingrule_product_references!
end