# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Compute::Mgmt::V2020_12_01 module Models # # The instance view of a dedicated host that includes the name of the # dedicated host. It is used for the response to the instance view of a # dedicated host group. # class DedicatedHostInstanceViewWithName < DedicatedHostInstanceView include MsRestAzure # @return [String] The name of the dedicated host. attr_accessor :name # # Mapper for DedicatedHostInstanceViewWithName class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DedicatedHostInstanceViewWithName', type: { name: 'Composite', class_name: 'DedicatedHostInstanceViewWithName', model_properties: { asset_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'assetId', type: { name: 'String' } }, available_capacity: { client_side_validation: true, required: false, serialized_name: 'availableCapacity', type: { name: 'Composite', class_name: 'DedicatedHostAvailableCapacity' } }, statuses: { client_side_validation: true, required: false, serialized_name: 'statuses', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'InstanceViewStatusElementType', type: { name: 'Composite', class_name: 'InstanceViewStatus' } } } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } } } } } end end end end