class Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleFragment

A schedule.

Attributes

daily_recurrence[RW]

@return [DayDetailsFragment] If the schedule will occur once each day of the week, specify the daily recurrence.

hourly_recurrence[RW]

@return [HourDetailsFragment] If the schedule will occur multiple times a day, specify the hourly recurrence.

notification_settings[RW]

@return [NotificationSettingsFragment] Notification settings.

status[RW]

@return [EnableStatus] The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', 'Disabled'

target_resource_id[RW]

@return [String] The resource ID to which the schedule belongs

task_type[RW]

@return [String] The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).

time_zone_id[RW]

@return [String] The time zone ID (e.g. Pacific Standard time).

weekly_recurrence[RW]

@return [WeekDetailsFragment] If the schedule will occur only some days of the week, specify the weekly recurrence.

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb, line 49
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ScheduleFragment',
    type: {
      name: 'Composite',
      class_name: 'ScheduleFragment',
      model_properties: {
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.status',
          type: {
            name: 'String'
          }
        },
        task_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.taskType',
          type: {
            name: 'String'
          }
        },
        weekly_recurrence: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.weeklyRecurrence',
          type: {
            name: 'Composite',
            class_name: 'WeekDetailsFragment'
          }
        },
        daily_recurrence: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.dailyRecurrence',
          type: {
            name: 'Composite',
            class_name: 'DayDetailsFragment'
          }
        },
        hourly_recurrence: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.hourlyRecurrence',
          type: {
            name: 'Composite',
            class_name: 'HourDetailsFragment'
          }
        },
        time_zone_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.timeZoneId',
          type: {
            name: 'String'
          }
        },
        notification_settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.notificationSettings',
          type: {
            name: 'Composite',
            class_name: 'NotificationSettingsFragment'
          }
        },
        target_resource_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.targetResourceId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end