class Azure::Compute::Mgmt::V2020_06_01::Models::DedicatedHostUpdate

Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated.

Attributes

auto_replace_on_failure[RW]

@return [Boolean] Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided.

host_id[RW]

@return [String] A unique id generated and assigned to the dedicated host by the platform.
Does not change throughout the lifetime of the host.

instance_view[RW]

@return [DedicatedHostInstanceView] The dedicated host instance view.

license_type[RW]

@return [DedicatedHostLicenseTypes] Specifies the software license type that will be applied to the VMs deployed on the dedicated host.
Possible values are:
*None*
*Windows_Server_Hybrid*
*Windows_Server_Perpetual*
Default: *None*. Possible values include: 'None', 'Windows_Server_Hybrid', 'Windows_Server_Perpetual'

platform_fault_domain[RW]

@return [Integer] Fault domain of the dedicated host within a dedicated host group.

provisioning_state[RW]

@return [String] The provisioning state, which only appears in the response.

provisioning_time[RW]

@return [DateTime] The date when the host was first provisioned.

virtual_machines[RW]

@return [Array<SubResourceReadOnly>] A list of references to all virtual machines in the Dedicated Host.

Public Class Methods

mapper() click to toggle source

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

# File lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_update.rb, line 57
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DedicatedHostUpdate',
    type: {
      name: 'Composite',
      class_name: 'DedicatedHostUpdate',
      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: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.platformFaultDomain',
          constraints: {
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        auto_replace_on_failure: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.autoReplaceOnFailure',
          type: {
            name: 'Boolean'
          }
        },
        host_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.hostId',
          type: {
            name: 'String'
          }
        },
        virtual_machines: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.virtualMachines',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SubResourceReadOnlyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SubResourceReadOnly'
                }
            }
          }
        },
        license_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.licenseType',
          type: {
            name: 'Enum',
            module: 'DedicatedHostLicenseTypes'
          }
        },
        provisioning_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningTime',
          type: {
            name: 'DateTime'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        instance_view: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.instanceView',
          type: {
            name: 'Composite',
            class_name: 'DedicatedHostInstanceView'
          }
        }
      }
    }
  }
end