Class: Azure::Compute::Mgmt::V2019_12_01::Models::DedicatedHost
- Inherits:
-
Resource
- Object
- Resource
- Azure::Compute::Mgmt::V2019_12_01::Models::DedicatedHost
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb
Overview
Specifies information about the Dedicated host.
Instance Attribute Summary collapse
-
#auto_replace_on_failure ⇒ Boolean
replaced automatically in case of a failure.
-
#host_id ⇒ String
host by the platform.
-
#instance_view ⇒ DedicatedHostInstanceView
The dedicated host instance view.
-
#license_type ⇒ DedicatedHostLicenseTypes
that will be applied to the VMs deployed on the dedicated host.
-
#platform_fault_domain ⇒ Integer
host group.
-
#provisioning_state ⇒ String
response.
-
#provisioning_time ⇒ DateTime
The date when the host was first provisioned.
-
#sku ⇒ Sku
family.
-
#virtual_machines ⇒ Array<SubResourceReadOnly>
virtual machines in the Dedicated Host.
Attributes inherited from Resource
#id, #location, #name, #tags, #type
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DedicatedHost class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#auto_replace_on_failure ⇒ Boolean
replaced automatically in case of a failure. The value is defaulted to 'true' when not provided.
22 23 24 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb', line 22 def auto_replace_on_failure @auto_replace_on_failure end |
#host_id ⇒ String
host by the platform.
Does not change throughout the lifetime of the host.
27 28 29 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb', line 27 def host_id @host_id end |
#instance_view ⇒ DedicatedHostInstanceView
Returns The dedicated host instance view.
49 50 51 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb', line 49 def instance_view @instance_view end |
#license_type ⇒ DedicatedHostLicenseTypes
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'
39 40 41 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb', line 39 def license_type @license_type end |
#platform_fault_domain ⇒ Integer
host group.
17 18 19 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb', line 17 def platform_fault_domain @platform_fault_domain end |
#provisioning_state ⇒ String
response.
46 47 48 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb', line 46 def provisioning_state @provisioning_state end |
#provisioning_time ⇒ DateTime
Returns The date when the host was first provisioned.
42 43 44 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb', line 42 def provisioning_time @provisioning_time end |
#sku ⇒ Sku
family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values.
54 55 56 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb', line 54 def sku @sku end |
#virtual_machines ⇒ Array<SubResourceReadOnly>
virtual machines in the Dedicated Host.
31 32 33 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb', line 31 def virtual_machines @virtual_machines end |
Class Method Details
.mapper ⇒ Object
Mapper for DedicatedHost class as Ruby Hash. This will be used for serialization/deserialization.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/dedicated_host.rb', line 61 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DedicatedHost', type: { name: 'Composite', class_name: 'DedicatedHost', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { client_side_validation: true, required: true, serialized_name: 'location', type: { name: 'String' } }, 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: { InclusiveMaximum: 2, 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' } }, sku: { client_side_validation: true, required: true, serialized_name: 'sku', type: { name: 'Composite', class_name: 'Sku' } } } } } end |