braket.device_schema.device_execution_window module

class braket.device_schema.device_execution_window.ExecutionDay(value)[source]

Bases: str, Enum

Enums for the execution days.

EVERYDAY

It tells us that the device can execute on all the days

WEEKDAYS

It tells us that the device can execute only on the weekdays

WEEKENDS

It tells us that the device can execute only on the weekends

MONDAY

It tells us that the device can execute only on the monday

TUESDAY

It tells us that the device can execute only on the tuesday

WEDNESDAY

It tells us that the device can execute only on the wednesday

THURSDAY

It tells us that the device can execute only on the thursday

FRIDAY

It tells us that the device can execute only on the friday

SATURDAY

It tells us that the device can execute only on the saturday

SUNDAY

It tells us that the device can execute only on the sunday

EVERYDAY = 'Everyday'
WEEKDAYS = 'Weekdays'
WEEKENDS = 'Weekend'
MONDAY = 'Monday'
TUESDAY = 'Tuesday'
WEDNESDAY = 'Wednesday'
THURSDAY = 'Thursday'
FRIDAY = 'Friday'
SATURDAY = 'Saturday'
SUNDAY = 'Sunday'
class braket.device_schema.device_execution_window.DeviceExecutionWindow(*, executionDay: ExecutionDay | str, windowStartHour: time, windowEndHour: time)[source]

Bases: BaseModel

This class defines when a device can execute a given task.

executionDay

Days of the execution window

Type:

Union[ExecutionDay, str]

windowStartHour

UTC 24-hour format of the time when the execution window starts

Type:

time

windowEndHour

UTC 24-hour format of the time when the execution window ends

Type:

time

Examples

>>> import json
>>> input_json = {
...    "executionDay": "Everyday",
...    "windowStartHour": "09:00",
...    "windowEndHour": "19:00",
... }
>>> DeviceExecutionWindow.parse_raw(json.dumps(input_json))

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

executionDay: ExecutionDay | str
windowStartHour: time
windowEndHour: time