Class: Azure::ARM::DevTestLabs::Models::LabResourceCostProperties

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb

Overview

The properties of a resource cost item.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#external_resource_idString

Returns The ID of the external resource.

Returns:

  • (String)

    The ID of the external resource



43
44
45
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb', line 43

def external_resource_id
  @external_resource_id
end

#resource_costFloat

Returns The cost component of the resource cost item.

Returns:

  • (Float)

    The cost component of the resource cost item.



23
24
25
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb', line 23

def resource_cost
  @resource_cost
end

#resource_idString

Returns The ID of the resource.

Returns:

  • (String)

    The ID of the resource



40
41
42
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb', line 40

def resource_id
  @resource_id
end

#resource_ownerString

Returns The owner of the resource (ex. [email protected]).

Returns:



30
31
32
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb', line 30

def resource_owner
  @resource_owner
end

#resource_pricing_tierString

Standard_DS1)

Returns:

  • (String)

    The category of the resource (ex. Premium_LRS,



34
35
36
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb', line 34

def resource_pricing_tier
  @resource_pricing_tier
end

#resource_statusString

Returns The status of the resource (ex. Active).

Returns:

  • (String)

    The status of the resource (ex. Active)



37
38
39
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb', line 37

def resource_status
  @resource_status
end

#resource_typeString

storageaccount)

Returns:

  • (String)

    The logical resource type (ex. virtualmachine,



27
28
29
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb', line 27

def resource_type
  @resource_type
end

#resource_uidString

Returns The unique identifier of the resource.

Returns:

  • (String)

    The unique identifier of the resource.



20
21
22
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb', line 20

def resource_uid
  @resource_uid
end

#resourcenameString

Returns The name of the resource.

Returns:

  • (String)

    The name of the resource.



17
18
19
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb', line 17

def resourcename
  @resourcename
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb', line 50

def self.mapper()
  {
    required: false,
    serialized_name: 'LabResourceCostProperties',
    type: {
      name: 'Composite',
      class_name: 'LabResourceCostProperties',
      model_properties: {
        resourcename: {
          required: false,
          serialized_name: 'resourcename',
          type: {
            name: 'String'
          }
        },
        resource_uid: {
          required: false,
          serialized_name: 'resourceUId',
          type: {
            name: 'String'
          }
        },
        resource_cost: {
          required: false,
          serialized_name: 'resourceCost',
          type: {
            name: 'Double'
          }
        },
        resource_type: {
          required: false,
          serialized_name: 'resourceType',
          type: {
            name: 'String'
          }
        },
        resource_owner: {
          required: false,
          serialized_name: 'resourceOwner',
          type: {
            name: 'String'
          }
        },
        resource_pricing_tier: {
          required: false,
          serialized_name: 'resourcePricingTier',
          type: {
            name: 'String'
          }
        },
        resource_status: {
          required: false,
          serialized_name: 'resourceStatus',
          type: {
            name: 'String'
          }
        },
        resource_id: {
          required: false,
          serialized_name: 'resourceId',
          type: {
            name: 'String'
          }
        },
        external_resource_id: {
          required: false,
          serialized_name: 'externalResourceId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end