# 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::V2019_07_01 module Models # # Specifies information about the dedicated host group that the dedicated # host should be assigned to. Only tags may be updated. # class DedicatedHostGroupUpdate < UpdateResource include MsRestAzure # @return [Integer] Number of fault domains that the host group can span. attr_accessor :platform_fault_domain_count # @return [Array] A list of references to all # dedicated hosts in the dedicated host group. attr_accessor :hosts # @return [Array] Availability Zone to use for this host group. # Only single zone is supported. The zone can be assigned only during # creation. If not provided, the group supports all zones in the region. # If provided, enforces each host in the group to be in the same zone. attr_accessor :zones # # Mapper for DedicatedHostGroupUpdate class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DedicatedHostGroupUpdate', type: { name: 'Composite', class_name: 'DedicatedHostGroupUpdate', model_properties: { tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, platform_fault_domain_count: { client_side_validation: true, required: true, serialized_name: 'properties.platformFaultDomainCount', constraints: { InclusiveMaximum: 3, InclusiveMinimum: 1 }, type: { name: 'Number' } }, hosts: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.hosts', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'SubResourceReadOnlyElementType', type: { name: 'Composite', class_name: 'SubResourceReadOnly' } } } }, zones: { client_side_validation: true, required: false, serialized_name: 'zones', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end end end end