Method: IntersightClient::KubernetesBaseVirtualMachineInfraConfig#to_hash
- Defined in:
- lib/intersight_client/models/kubernetes_base_virtual_machine_infra_config.rb
#to_hash ⇒ Hash
Returns the object in the form of hash
286 287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/intersight_client/models/kubernetes_base_virtual_machine_infra_config.rb', line 286 def to_hash hash = super KubernetesBaseVirtualMachineInfraConfig.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = KubernetesBaseVirtualMachineInfraConfig.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |