GenerateSessionTokenDetails

class oci.media_services.models.GenerateSessionTokenDetails(**kwargs)

Bases: object

Information about the new session token.

Attributes:

SCOPES_EDGE

A constant which can be used with the scopes property of a GenerateSessionTokenDetails.

SCOPES_PLAYLIST

A constant which can be used with the scopes property of a GenerateSessionTokenDetails.

asset_ids

Gets the asset_ids of this GenerateSessionTokenDetails.

packaging_config_id

[Required] Gets the packaging_config_id of this GenerateSessionTokenDetails.

scopes

[Required] Gets the scopes of this GenerateSessionTokenDetails.

time_expires

Gets the time_expires of this GenerateSessionTokenDetails.

Methods:

__init__(**kwargs)

Initializes a new GenerateSessionTokenDetails object with values from keyword arguments.

SCOPES_EDGE = 'EDGE'

A constant which can be used with the scopes property of a GenerateSessionTokenDetails. This constant has a value of “EDGE”

SCOPES_PLAYLIST = 'PLAYLIST'

A constant which can be used with the scopes property of a GenerateSessionTokenDetails. This constant has a value of “PLAYLIST”

__init__(**kwargs)

Initializes a new GenerateSessionTokenDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • time_expires (datetime) – The value to assign to the time_expires property of this GenerateSessionTokenDetails.

  • scopes (list[str]) – The value to assign to the scopes property of this GenerateSessionTokenDetails. Allowed values for items in this list are: “PLAYLIST”, “EDGE”

  • packaging_config_id (str) – The value to assign to the packaging_config_id property of this GenerateSessionTokenDetails.

  • asset_ids (list[str]) – The value to assign to the asset_ids property of this GenerateSessionTokenDetails.

property asset_ids

Gets the asset_ids of this GenerateSessionTokenDetails. Array of asset resource IDs used to limit the scope of the token.

Returns

The asset_ids of this GenerateSessionTokenDetails.

Return type

list[str]

property packaging_config_id

[Required] Gets the packaging_config_id of this GenerateSessionTokenDetails. The packaging config resource identifier used to limit the scope of the token.

Returns

The packaging_config_id of this GenerateSessionTokenDetails.

Return type

str

property scopes

[Required] Gets the scopes of this GenerateSessionTokenDetails. Array of scopes the token can act upon.

Allowed values for items in this list are: “PLAYLIST”, “EDGE”

Returns

The scopes of this GenerateSessionTokenDetails.

Return type

list[str]

property time_expires

Gets the time_expires of this GenerateSessionTokenDetails. Token expiry time. An RFC3339 formatted datetime string.

Returns

The time_expires of this GenerateSessionTokenDetails.

Return type

datetime