Class: KubeDSL::DSL::Rbac::V1beta1::RoleBinding
- Inherits:
-
KubeDSL::DSLObject
- Object
- KubeDSL::DSLObject
- KubeDSL::DSL::Rbac::V1beta1::RoleBinding
- Defined in:
- lib/kube-dsl/dsl/rbac/v1beta1/role_binding.rb
Instance Method Summary collapse
Methods inherited from KubeDSL::DSLObject
Methods included from ValueFields
#array_field, #object_field, #value_field, #value_fields
Constructor Details
This class inherits a constructor from KubeDSL::DSLObject
Instance Method Details
#kind_sym ⇒ Object
17 18 19 |
# File 'lib/kube-dsl/dsl/rbac/v1beta1/role_binding.rb', line 17 def kind_sym :role_binding end |
#serialize ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/kube-dsl/dsl/rbac/v1beta1/role_binding.rb', line 7 def serialize {}.tap do |result| result[:apiVersion] = "rbac.authorization.k8s.io/v1beta1" result[:kind] = "RoleBinding" result[:subjects] = subjects.map(&:serialize) result[:metadata] = .serialize result[:roleRef] = role_ref.serialize end end |