Class: Azure::ServiceFabric::V6_4_0_36::Models::TimeBasedBackupScheduleDescription

Inherits:
BackupScheduleDescription show all
Includes:
MsRestAzure
Defined in:
lib/6.4.0.36/generated/azure_service_fabric/models/time_based_backup_schedule_description.rb

Overview

Describes the time based backup schedule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTimeBasedBackupScheduleDescription

Returns a new instance of TimeBasedBackupScheduleDescription.



16
17
18
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/time_based_backup_schedule_description.rb', line 16

def initialize
  @ScheduleKind = "TimeBased"
end

Instance Attribute Details

#run_daysArray<DayOfWeek>

periodic backup. This is valid only when the backup schedule frequency type is weekly.

Returns:

  • (Array<DayOfWeek>)

    List of days of a week when to trigger the



30
31
32
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/time_based_backup_schedule_description.rb', line 30

def run_days
  @run_days
end

#run_timesArray<DateTime>

day in ISO8601 format. Like ‘19:00:00’ will represent ‘7PM’ during the day. Date specified along with time will be ignored.

Returns:

  • (Array<DateTime>)

    Represents the list of exact time during the



35
36
37
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/time_based_backup_schedule_description.rb', line 35

def run_times
  @run_times
end

#schedule_frequency_typeBackupScheduleFrequencyType

which to run the time based backup schedule. Possible values include: ‘Invalid’, ‘Daily’, ‘Weekly’

Returns:



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

def schedule_frequency_type
  @schedule_frequency_type
end

#ScheduleKindObject

Returns the value of attribute ScheduleKind.



20
21
22
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/time_based_backup_schedule_description.rb', line 20

def ScheduleKind
  @ScheduleKind
end

Class Method Details

.mapperObject

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



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
101
102
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/time_based_backup_schedule_description.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TimeBased',
    type: {
      name: 'Composite',
      class_name: 'TimeBasedBackupScheduleDescription',
      model_properties: {
        ScheduleKind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ScheduleKind',
          type: {
            name: 'String'
          }
        },
        schedule_frequency_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ScheduleFrequencyType',
          type: {
            name: 'String'
          }
        },
        run_days: {
          client_side_validation: true,
          required: false,
          serialized_name: 'RunDays',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DayOfWeekElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        run_times: {
          client_side_validation: true,
          required: true,
          serialized_name: 'RunTimes',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DateTimeElementType',
                type: {
                  name: 'DateTime'
                }
            }
          }
        }
      }
    }
  }
end