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

Configuration for YouTube video card (Stargazer tile).

Attributes

  • imageUrl (type: String.t, default: nil) - URL of image to go on card. The URL must be a public link accessible from ZeroState.
  • playlistId (type: String.t, default: nil) - ID of YouTube playlist to play on card tap. A playlist is used instead of a single video id to avoid autoplaying related videos. The playlist and the videos it contains must be public or unlisted to be accessible from ZeroState.
  • text (type: String.t, default: nil) - Text on card (i.e., video title).

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsYouTubeCardConfig{
    imageUrl: String.t() | nil,
    playlistId: String.t() | nil,
    text: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.