View Source GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimeSchedule (google_api_content_warehouse v0.4.0)

Specification of when downtime is enabled on different days of the week. Contains up to 7 DowntimePeriod messages, up to one per day of the week.

Attributes

  • enabled (type: boolean(), default: nil) - True if this downtime schedule should be enabled.
  • periods (type: list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimePeriod.t), default: nil) - Downtime entries for the days of the week, in no particular order. There can be at most one period defined for each day of the week. Days of the week with no explicit period defined are treated as disabled, so the device is available all day (modulo an end time that may spill over from the previous day).

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimeSchedule{
    enabled: boolean() | nil,
    periods:
      [
        GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimePeriod.t()
      ]
      | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.