Class: Azure::ServiceFabric::V6_4_0_36::Models::ChaosSchedule

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.4.0.36/generated/azure_service_fabric/models/chaos_schedule.rb

Overview

Defines the schedule used by Chaos.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#chaos_parameters_dictionaryArray<ChaosParametersDictionaryItem>

names to Chaos Parameters to be referenced by Chaos Schedule Jobs.

Returns:



25
26
27
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/chaos_schedule.rb', line 25

def chaos_parameters_dictionary
  @chaos_parameters_dictionary
end

#expiry_dateDateTime

schedule until. Default value: Date.parse(ā€˜9999-12-31T23:59:59.999Zā€™) .

Returns:

  • (DateTime)

    The date and time Chaos will continue to use this



21
22
23
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/chaos_schedule.rb', line 21

def expiry_date
  @expiry_date
end

#jobsArray<ChaosScheduleJob>

that will be automated by the schedule.

Returns:



29
30
31
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/chaos_schedule.rb', line 29

def jobs
  @jobs
end

#start_dateDateTime

schedule. Default value: Date.parse(ā€˜1601-01-01T00:00:00Zā€™) .

Returns:

  • (DateTime)

    The date and time Chaos will start using this



17
18
19
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/chaos_schedule.rb', line 17

def start_date
  @start_date
end

Class Method Details

.mapperObject

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



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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/chaos_schedule.rb', line 36

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ChaosSchedule',
    type: {
      name: 'Composite',
      class_name: 'ChaosSchedule',
      model_properties: {
        start_date: {
          client_side_validation: true,
          required: false,
          serialized_name: 'StartDate',
          default_value: Date.parse('1601-01-01T00:00:00Z'),
          type: {
            name: 'DateTime'
          }
        },
        expiry_date: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ExpiryDate',
          default_value: Date.parse('9999-12-31T23:59:59.999Z'),
          type: {
            name: 'DateTime'
          }
        },
        chaos_parameters_dictionary: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ChaosParametersDictionary',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ChaosParametersDictionaryItemElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ChaosParametersDictionaryItem'
                }
            }
          }
        },
        jobs: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Jobs',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ChaosScheduleJobElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ChaosScheduleJob'
                }
            }
          }
        }
      }
    }
  }
end