Class: Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::OrderStatus

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-08-01/generated/azure_mgmt_databoxedge/models/order_status.rb

Overview

Represents a single status change.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#additional_order_detailsHash{String => String}

which is not stored by the already existing properties

Returns:

  • (Hash{String => String})

    Dictionary to hold generic information



32
33
34
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/order_status.rb', line 32

def additional_order_details
  @additional_order_details
end

#commentsString

Returns Comments related to this status change.

Returns:

  • (String)

    Comments related to this status change.



27
28
29
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/order_status.rb', line 27

def comments
  @comments
end

#statusOrderState

types. Possible values include: ‘Untracked’, ‘AwaitingFulfilment’, ‘AwaitingPreparation’, ‘AwaitingShipment’, ‘Shipped’, ‘Arriving’, ‘Delivered’, ‘ReplacementRequested’, ‘LostDevice’, ‘Declined’, ‘ReturnInitiated’, ‘AwaitingReturnShipment’, ‘ShippedBack’, ‘CollectedAtMicrosoft’

Returns:

  • (OrderState)

    Status of the order as per the allowed status



21
22
23
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/order_status.rb', line 21

def status
  @status
end

#update_date_timeDateTime

Returns Time of status update.

Returns:

  • (DateTime)

    Time of status update.



24
25
26
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/order_status.rb', line 24

def update_date_time
  @update_date_time
end

Class Method Details

.mapperObject

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



39
40
41
42
43
44
45
46
47
48
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
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/order_status.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'OrderStatus',
    type: {
      name: 'Composite',
      class_name: 'OrderStatus',
      model_properties: {
        status: {
          client_side_validation: true,
          required: true,
          serialized_name: 'status',
          type: {
            name: 'String'
          }
        },
        update_date_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'updateDateTime',
          type: {
            name: 'DateTime'
          }
        },
        comments: {
          client_side_validation: true,
          required: false,
          serialized_name: 'comments',
          type: {
            name: 'String'
          }
        },
        additional_order_details: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'additionalOrderDetails',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end