Class: Azure::DataBox::Mgmt::V2018_01_01::Models::CancellationReason
- Inherits:
-
Object
- Object
- Azure::DataBox::Mgmt::V2018_01_01::Models::CancellationReason
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-01-01/generated/azure_mgmt_databox/models/cancellation_reason.rb
Overview
Reason for cancellation.
Instance Attribute Summary collapse
-
#reason ⇒ String
Reason for cancellation.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for CancellationReason class as Ruby Hash.
Instance Attribute Details
#reason ⇒ String
Returns Reason for cancellation.
16 17 18 |
# File 'lib/2018-01-01/generated/azure_mgmt_databox/models/cancellation_reason.rb', line 16 def reason @reason end |
Class Method Details
.mapper ⇒ Object
Mapper for CancellationReason class as Ruby Hash. This will be used for serialization/deserialization.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/2018-01-01/generated/azure_mgmt_databox/models/cancellation_reason.rb', line 23 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CancellationReason', type: { name: 'Composite', class_name: 'CancellationReason', model_properties: { reason: { client_side_validation: true, required: true, serialized_name: 'reason', type: { name: 'String' } } } } } end |