class Azure::Compute::Mgmt::V2019_12_01::Models::DedicatedHostGroupUpdate

Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated.

Attributes

hosts[RW]

@return [Array<SubResourceReadOnly>] A list of references to all dedicated hosts in the dedicated host group.

platform_fault_domain_count[RW]

@return [Integer] Number of fault domains that the host group can span.

zones[RW]

@return [Array<String>] 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.

Public Class Methods

mapper() click to toggle source

Mapper for DedicatedHostGroupUpdate class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host_group_update.rb, line 34
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