Class: Azure::Consumption::Mgmt::V2019_10_01::Models::ReservationTransaction
- Inherits:
-
Resource
- Object
- Resource
- Azure::Consumption::Mgmt::V2019_10_01::Models::ReservationTransaction
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb
Overview
Reservation transaction resource.
Instance Attribute Summary collapse
-
#account_name ⇒ String
The name of the account that makes the transaction.
-
#account_owner_email ⇒ String
transaction.
-
#amount ⇒ Object
The charge of the transaction.
-
#arm_sku_name ⇒ String
the serviceType field in additional info in usage records.
-
#billing_frequency ⇒ String
recurring.
-
#cost_center ⇒ String
department and a cost center is provided.
-
#currency ⇒ String
for example, USD.
-
#current_enrollment ⇒ String
The current enrollment.
-
#department_name ⇒ String
The department name.
-
#description ⇒ String
The description of the transaction.
-
#event_date ⇒ DateTime
The date of the transaction.
-
#event_type ⇒ String
The type of the transaction (Purchase, Cancel, etc.).
-
#purchasing_enrollment ⇒ String
The purchasing enrollment.
-
#purchasing_subscription_guid ⇒ Object
The subscription guid that makes the transaction.
-
#purchasing_subscription_name ⇒ String
The subscription name that makes the transaction.
-
#quantity ⇒ Object
The quantity of the transaction.
-
#region ⇒ String
The region of the transaction.
-
#reservation_order_id ⇒ String
reservation purchase.
-
#reservation_order_name ⇒ String
The name of the reservation order.
-
#term ⇒ String
This is the term of the transaction.
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ReservationTransaction class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#account_name ⇒ String
Returns The name of the account that makes the transaction.
64 65 66 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 64 def account_name @account_name end |
#account_owner_email ⇒ String
transaction.
68 69 70 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 68 def account_owner_email @account_owner_email end |
#amount ⇒ Object
Returns The charge of the transaction.
35 36 37 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 35 def amount @amount end |
#arm_sku_name ⇒ String
the serviceType field in additional info in usage records.
55 56 57 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 55 def arm_sku_name @arm_sku_name end |
#billing_frequency ⇒ String
recurring.
82 83 84 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 82 def billing_frequency @billing_frequency end |
#cost_center ⇒ String
department and a cost center is provided.
75 76 77 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 75 def cost_center @cost_center end |
#currency ⇒ String
for example, USD.
39 40 41 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 39 def currency @currency end |
#current_enrollment ⇒ String
Returns The current enrollment.
78 79 80 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 78 def current_enrollment @current_enrollment end |
#department_name ⇒ String
Returns The department name.
71 72 73 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 71 def department_name @department_name end |
#description ⇒ String
Returns The description of the transaction.
26 27 28 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 26 def description @description end |
#event_date ⇒ DateTime
Returns The date of the transaction.
16 17 18 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 16 def event_date @event_date end |
#event_type ⇒ String
Returns The type of the transaction (Purchase, Cancel, etc.).
29 30 31 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 29 def event_type @event_type end |
#purchasing_enrollment ⇒ String
Returns The purchasing enrollment.
45 46 47 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 45 def purchasing_enrollment @purchasing_enrollment end |
#purchasing_subscription_guid ⇒ Object
Returns The subscription guid that makes the transaction.
48 49 50 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 48 def purchasing_subscription_guid @purchasing_subscription_guid end |
#purchasing_subscription_name ⇒ String
Returns The subscription name that makes the transaction.
51 52 53 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 51 def purchasing_subscription_name @purchasing_subscription_name end |
#quantity ⇒ Object
Returns The quantity of the transaction.
32 33 34 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 32 def quantity @quantity end |
#region ⇒ String
Returns The region of the transaction.
61 62 63 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 61 def region @region end |
#reservation_order_id ⇒ String
reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.
23 24 25 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 23 def reservation_order_id @reservation_order_id end |
#reservation_order_name ⇒ String
Returns The name of the reservation order.
42 43 44 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 42 def reservation_order_name @reservation_order_name end |
#term ⇒ String
Returns This is the term of the transaction.
58 59 60 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 58 def term @term end |
Class Method Details
.mapper ⇒ Object
Mapper for ReservationTransaction class as Ruby Hash. This will be used for serialization/deserialization.
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 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 |
# File 'lib/2019-10-01/generated/azure_mgmt_consumption/models/reservation_transaction.rb', line 89 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ReservationTransaction', type: { name: 'Composite', class_name: 'ReservationTransaction', 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' } }, tags: { client_side_validation: true, required: false, read_only: true, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, event_date: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.eventDate', type: { name: 'DateTime' } }, reservation_order_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.reservationOrderId', type: { name: 'String' } }, description: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.description', type: { name: 'String' } }, event_type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.eventType', type: { name: 'String' } }, quantity: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.quantity', type: { name: 'Number' } }, amount: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.amount', type: { name: 'Number' } }, currency: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.currency', type: { name: 'String' } }, reservation_order_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.reservationOrderName', type: { name: 'String' } }, purchasing_enrollment: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.purchasingEnrollment', type: { name: 'String' } }, purchasing_subscription_guid: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.purchasingSubscriptionGuid', type: { name: 'String' } }, purchasing_subscription_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.purchasingSubscriptionName', type: { name: 'String' } }, arm_sku_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.armSkuName', type: { name: 'String' } }, term: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.term', type: { name: 'String' } }, region: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.region', type: { name: 'String' } }, account_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.accountName', type: { name: 'String' } }, account_owner_email: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.accountOwnerEmail', type: { name: 'String' } }, department_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.departmentName', type: { name: 'String' } }, cost_center: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.costCenter', type: { name: 'String' } }, current_enrollment: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.currentEnrollment', type: { name: 'String' } }, billing_frequency: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.billingFrequency', type: { name: 'String' } } } } } end |