Class: Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::Trigger

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

Overview

Trigger details.

Direct Known Subclasses

FileEventTrigger, PeriodicTimerEventTrigger

Instance Attribute Summary collapse

Attributes inherited from ARMBaseModel

#id, #name, #type

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTrigger

Returns a new instance of Trigger.



16
17
18
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/trigger.rb', line 16

def initialize
  @kind = "Trigger"
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



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

def kind
  @kind
end

Class Method Details

.mapperObject

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



27
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
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/trigger.rb', line 27

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Trigger',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'kind',
      uber_parent: 'ARMBaseModel',
      class_name: 'Trigger',
      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'
          }
        }
      }
    }
  }
end