Class: Azure::DataBox::Mgmt::V2018_01_01::Models::NotificationPreference

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-01-01/generated/azure_mgmt_databox/models/notification_preference.rb

Overview

Notification preference for a job stage.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#send_notificationBoolean

Returns Notification is required or not.

Returns:

  • (Boolean)

    Notification is required or not.



21
22
23
# File 'lib/2018-01-01/generated/azure_mgmt_databox/models/notification_preference.rb', line 21

def send_notification
  @send_notification
end

#stage_nameNotificationStageName

include: ‘DevicePrepared’, ‘Dispatched’, ‘Delivered’, ‘PickedUp’, ‘AtAzureDC’, ‘DataCopy’

Returns:



18
19
20
# File 'lib/2018-01-01/generated/azure_mgmt_databox/models/notification_preference.rb', line 18

def stage_name
  @stage_name
end

Class Method Details

.mapperObject

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



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/2018-01-01/generated/azure_mgmt_databox/models/notification_preference.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'NotificationPreference',
    type: {
      name: 'Composite',
      class_name: 'NotificationPreference',
      model_properties: {
        stage_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'stageName',
          type: {
            name: 'Enum',
            module: 'NotificationStageName'
          }
        },
        send_notification: {
          client_side_validation: true,
          required: true,
          serialized_name: 'sendNotification',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end