Class: KubeDSL::DSL::Autoscaling::V2::HPAScalingPolicy
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
24
25
26
|
# File 'lib/kube-dsl/dsl/autoscaling/v2/hpa_scaling_policy.rb', line 24
def kind_sym
:hpa_scaling_policy
end
|
#serialize ⇒ Object
16
17
18
19
20
21
22
|
# File 'lib/kube-dsl/dsl/autoscaling/v2/hpa_scaling_policy.rb', line 16
def serialize
{}.tap do |result|
result[:periodSeconds] = period_seconds
result[:type] = type
result[:value] = value
end
end
|