Class: Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::PeriodicTimerSourceInfo

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

Overview

Periodic timer event source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#scheduleString

raised. Supports daily, hourly, minutes, and seconds.

Returns:

  • (String)

    Periodic frequency at which timer event needs to be



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

def schedule
  @schedule
end

#start_timeDateTime

Schedule is computed with reference to the time specified upto seconds. If timezone is not specified the time will considered to be in device timezone. The value will always be returned as UTC time.

Returns:

  • (DateTime)

    The time of the day that results in a valid trigger.



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

def start_time
  @start_time
end

#topicString

device.

Returns:

  • (String)

    Topic where periodic events are published to IoT



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

def topic
  @topic
end

Class Method Details

.mapperObject

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



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
69
70
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/periodic_timer_source_info.rb', line 34

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PeriodicTimerSourceInfo',
    type: {
      name: 'Composite',
      class_name: 'PeriodicTimerSourceInfo',
      model_properties: {
        start_time: {
          client_side_validation: true,
          required: true,
          serialized_name: 'startTime',
          type: {
            name: 'DateTime'
          }
        },
        schedule: {
          client_side_validation: true,
          required: true,
          serialized_name: 'schedule',
          type: {
            name: 'String'
          }
        },
        topic: {
          client_side_validation: true,
          required: false,
          serialized_name: 'topic',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end