Class: AnalyticsOps::Plan::Change
- Inherits:
-
Resources::Value
- Object
- Resources::Value
- AnalyticsOps::Plan::Change
- Defined in:
- lib/analytics_ops/plan.rb,
sig/analytics_ops.rbs
Overview
One approved create or update operation.
Instance Attribute Summary collapse
-
#after ⇒ record
readonly
Returns the value of attribute after.
-
#api_maturity ⇒ String
readonly
Returns the value of attribute api_maturity.
-
#before ⇒ record?
readonly
Returns the value of attribute before.
-
#operation ⇒ String
readonly
Returns the value of attribute operation.
-
#resource_identity ⇒ String
readonly
Returns the value of attribute resource_identity.
-
#resource_type ⇒ String
readonly
Returns the value of attribute resource_type.
-
#reversible ⇒ Boolean
readonly
Returns the value of attribute reversible.
-
#rollback ⇒ String
readonly
Returns the value of attribute rollback.
Class Method Summary collapse
Methods inherited from Resources::Value
#==, fields, #hash, #initialize, #to_h
Constructor Details
This class inherits a constructor from AnalyticsOps::Resources::Value
Instance Attribute Details
#after ⇒ record (readonly)
Returns the value of attribute after.
279 280 281 |
# File 'sig/analytics_ops.rbs', line 279 def after @after end |
#api_maturity ⇒ String (readonly)
Returns the value of attribute api_maturity.
277 278 279 |
# File 'sig/analytics_ops.rbs', line 277 def api_maturity @api_maturity end |
#before ⇒ record? (readonly)
Returns the value of attribute before.
278 279 280 |
# File 'sig/analytics_ops.rbs', line 278 def before @before end |
#operation ⇒ String (readonly)
Returns the value of attribute operation.
276 277 278 |
# File 'sig/analytics_ops.rbs', line 276 def operation @operation end |
#resource_identity ⇒ String (readonly)
Returns the value of attribute resource_identity.
275 276 277 |
# File 'sig/analytics_ops.rbs', line 275 def resource_identity @resource_identity end |
#resource_type ⇒ String (readonly)
Returns the value of attribute resource_type.
274 275 276 |
# File 'sig/analytics_ops.rbs', line 274 def resource_type @resource_type end |
#reversible ⇒ Boolean (readonly)
Returns the value of attribute reversible.
280 281 282 |
# File 'sig/analytics_ops.rbs', line 280 def reversible @reversible end |
#rollback ⇒ String (readonly)
Returns the value of attribute rollback.
281 282 283 |
# File 'sig/analytics_ops.rbs', line 281 def rollback @rollback end |
Class Method Details
.from_h(raw) ⇒ Change
170 171 172 173 174 175 176 |
# File 'lib/analytics_ops/plan.rb', line 170 def self.from_h(raw) hash = Plan.string_keyed_hash(raw, "change") Plan.exact_keys!(hash, field_names.map(&:to_s), "change") new(**field_names.to_h { |name| [name, hash.fetch(name.to_s)] }) rescue KeyError => error raise InvalidPlanError, "Missing plan change field #{error.key}" end |