class Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule

A schedule.

Attributes

created_date[RW]

@return [DateTime] The creation date of the schedule.

daily_recurrence[RW]

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

hourly_recurrence[RW]

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

notification_settings[RW]

@return [NotificationSettings] Notification settings.

provisioning_state[RW]

@return [String] The provisioning status of the resource.

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).

unique_identifier[RW]

@return [String] The unique immutable identifier of a resource (Guid).

weekly_recurrence[RW]

@return [WeekDetails] 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 Schedule class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule.rb, line 58
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Schedule',
    type: {
      name: 'Composite',
      class_name: 'Schedule',
      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'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        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: 'WeekDetails'
          }
        },
        daily_recurrence: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.dailyRecurrence',
          type: {
            name: 'Composite',
            class_name: 'DayDetails'
          }
        },
        hourly_recurrence: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.hourlyRecurrence',
          type: {
            name: 'Composite',
            class_name: 'HourDetails'
          }
        },
        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: 'NotificationSettings'
          }
        },
        created_date: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.createdDate',
          type: {
            name: 'DateTime'
          }
        },
        target_resource_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.targetResourceId',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        unique_identifier: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.uniqueIdentifier',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end