Class: Azure::Labservices::Mgmt::V2018_10_15::Models::EnvironmentDetails

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-10-15/generated/azure_mgmt_labservices/models/environment_details.rb

Overview

This represents the details about a User’s environment and its state.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#descriptionString

Returns Description of the Environment.

Returns:

  • (String)

    Description of the Environment



19
20
21
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/environment_details.rb', line 19

def description
  @description
end

#environment_stateString

values are Creating, Created, Failed

Returns:

  • (String)

    Publishing state of the environment setting Possible



38
39
40
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/environment_details.rb', line 38

def environment_state
  @environment_state
end

#idString

Returns Resource Id of the environment.

Returns:

  • (String)

    Resource Id of the environment



22
23
24
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/environment_details.rb', line 22

def id
  @id
end

#latest_operation_resultLatestOperationResult

ex: status, error

Returns:



34
35
36
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/environment_details.rb', line 34

def latest_operation_result
  @latest_operation_result
end

#nameString

Returns Name of the Environment.

Returns:

  • (String)

    Name of the Environment



16
17
18
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/environment_details.rb', line 16

def name
  @name
end

#password_last_resetDateTime

Returns When the password was last reset on the environment.

Returns:

  • (DateTime)

    When the password was last reset on the environment.



44
45
46
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/environment_details.rb', line 44

def password_last_reset
  @password_last_reset
end

#provisioning_stateString

includes LabIsFull and NotYetProvisioned status.

Returns:

  • (String)

    The provisioning state of the environment. This also



26
27
28
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/environment_details.rb', line 26

def provisioning_state
  @provisioning_state
end

#total_usageDuration

Returns How long the environment has been used by a lab user.

Returns:

  • (Duration)

    How long the environment has been used by a lab user



41
42
43
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/environment_details.rb', line 41

def total_usage
  @total_usage
end

#virtual_machine_detailsVirtualMachineDetails

with compute and network details.

Returns:



30
31
32
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/environment_details.rb', line 30

def virtual_machine_details
  @virtual_machine_details
end

Class Method Details

.mapperObject

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



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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/environment_details.rb', line 51

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EnvironmentDetails',
    type: {
      name: 'Composite',
      class_name: 'EnvironmentDetails',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'description',
          type: {
            name: 'String'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'provisioningState',
          type: {
            name: 'String'
          }
        },
        virtual_machine_details: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'virtualMachineDetails',
          type: {
            name: 'Composite',
            class_name: 'VirtualMachineDetails'
          }
        },
        latest_operation_result: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'latestOperationResult',
          type: {
            name: 'Composite',
            class_name: 'LatestOperationResult'
          }
        },
        environment_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'environmentState',
          type: {
            name: 'String'
          }
        },
        total_usage: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'totalUsage',
          type: {
            name: 'TimeSpan'
          }
        },
        password_last_reset: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'passwordLastReset',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end