Class: Azure::Labservices::Mgmt::V2018_10_15::Models::User
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-10-15/generated/azure_mgmt_labservices/models/user.rb
Overview
The User registered to a lab
Instance Attribute Summary collapse
-
#email ⇒ String
registration.
-
#family_name ⇒ String
registration.
-
#given_name ⇒ String
registration.
-
#latest_operation_result ⇒ LatestOperationResult
ex: status, error.
-
#provisioning_state ⇒ String
The provisioning status of the resource.
-
#tenant_id ⇒ String
registration.
-
#total_usage ⇒ Duration
How long the user has used his VMs in this lab.
-
#unique_identifier ⇒ String
The unique immutable identifier of a resource (Guid).
Attributes inherited from Resource
#id, #location, #name, #tags, #type
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for User class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#email ⇒ String
registration.
17 18 19 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/user.rb', line 17 def email @email end |
#family_name ⇒ String
registration.
21 22 23 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/user.rb', line 21 def family_name @family_name end |
#given_name ⇒ String
registration.
25 26 27 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/user.rb', line 25 def given_name @given_name end |
#latest_operation_result ⇒ LatestOperationResult
ex: status, error
42 43 44 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/user.rb', line 42 def latest_operation_result @latest_operation_result end |
#provisioning_state ⇒ String
Returns The provisioning status of the resource.
35 36 37 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/user.rb', line 35 def provisioning_state @provisioning_state end |
#tenant_id ⇒ String
registration.
29 30 31 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/user.rb', line 29 def tenant_id @tenant_id end |
#total_usage ⇒ Duration
Returns How long the user has used his VMs in this lab.
32 33 34 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/user.rb', line 32 def total_usage @total_usage end |
#unique_identifier ⇒ String
Returns The unique immutable identifier of a resource (Guid).
38 39 40 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/user.rb', line 38 def unique_identifier @unique_identifier end |
Class Method Details
.mapper ⇒ Object
Mapper for User class as Ruby Hash. This will be used for serialization/deserialization.
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 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 |
# File 'lib/2018-10-15/generated/azure_mgmt_labservices/models/user.rb', line 49 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'User', type: { name: 'Composite', class_name: 'User', 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: false, 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' } } } }, email: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.email', type: { name: 'String' } }, family_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.familyName', type: { name: 'String' } }, given_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.givenName', type: { name: 'String' } }, tenant_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.tenantId', type: { name: 'String' } }, total_usage: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.totalUsage', type: { name: 'TimeSpan' } }, provisioning_state: { client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { name: 'String' } }, unique_identifier: { client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { name: 'String' } }, latest_operation_result: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.latestOperationResult', type: { name: 'Composite', class_name: 'LatestOperationResult' } } } } } end |