Class: Azure::Compute::Mgmt::V2020_06_01::Models::DedicatedHostInstanceViewWithName

Inherits:
DedicatedHostInstanceView show all
Includes:
MsRestAzure
Defined in:
lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_instance_view_with_name.rb

Overview

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.

Instance Attribute Summary collapse

Attributes inherited from DedicatedHostInstanceView

#asset_id, #available_capacity, #statuses

Class Method Summary collapse

Instance Attribute Details

#nameString

Returns The name of the dedicated host.

Returns:

  • (String)

    The name of the dedicated host.



18
19
20
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_instance_view_with_name.rb', line 18

def name
  @name
end

Class Method Details

.mapperObject

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



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_instance_view_with_name.rb', line 25

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