Method: VSphereAutomation::VAPI::VapiMetadataCliCommandOutputInfo#initialize
- Defined in:
- lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_output_info.rb
#initialize(attributes = {}) ⇒ VapiMetadataCliCommandOutputInfo
Initializes the object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_output_info.rb', line 38 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'structure_id') self.structure_id = attributes[:'structure_id'] end if attributes.has_key?(:'output_fields') if (value = attributes[:'output_fields']).is_a?(Array) self.output_fields = value end end end |