SnapSpecDetails

class oci.os_management_hub.models.SnapSpecDetails(**kwargs)

Bases: object

Details about a specific snap.

Attributes

MODE_CLASSIC A constant which can be used with the mode property of a SnapSpecDetails.
MODE_DEFAULT A constant which can be used with the mode property of a SnapSpecDetails.
MODE_DEV_MODE A constant which can be used with the mode property of a SnapSpecDetails.
MODE_JAIL_MODE A constant which can be used with the mode property of a SnapSpecDetails.
channel Gets the channel of this SnapSpecDetails.
is_signed Gets the is_signed of this SnapSpecDetails.
mode Gets the mode of this SnapSpecDetails.
name [Required] Gets the name of this SnapSpecDetails.
revision Gets the revision of this SnapSpecDetails.
version Gets the version of this SnapSpecDetails.

Methods

__init__(**kwargs) Initializes a new SnapSpecDetails object with values from keyword arguments.
MODE_CLASSIC = 'CLASSIC'

A constant which can be used with the mode property of a SnapSpecDetails. This constant has a value of “CLASSIC”

MODE_DEFAULT = 'DEFAULT'

A constant which can be used with the mode property of a SnapSpecDetails. This constant has a value of “DEFAULT”

MODE_DEV_MODE = 'DEV_MODE'

A constant which can be used with the mode property of a SnapSpecDetails. This constant has a value of “DEV_MODE”

MODE_JAIL_MODE = 'JAIL_MODE'

A constant which can be used with the mode property of a SnapSpecDetails. This constant has a value of “JAIL_MODE”

__init__(**kwargs)

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

Parameters:
  • channel (str) – The value to assign to the channel property of this SnapSpecDetails.
  • is_signed (bool) – The value to assign to the is_signed property of this SnapSpecDetails.
  • mode (str) – The value to assign to the mode property of this SnapSpecDetails. Allowed values for this property are: “DEFAULT”, “CLASSIC”, “JAIL_MODE”, “DEV_MODE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • name (str) – The value to assign to the name property of this SnapSpecDetails.
  • version (str) – The value to assign to the version property of this SnapSpecDetails.
  • revision (str) – The value to assign to the revision property of this SnapSpecDetails.
channel

Gets the channel of this SnapSpecDetails. The channel to install from (e.g. stable, edge, beta, candidate, or a custom channel).

Returns:The channel of this SnapSpecDetails.
Return type:str
is_signed

Gets the is_signed of this SnapSpecDetails. If true, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution.

Returns:The is_signed of this SnapSpecDetails.
Return type:bool
mode

Gets the mode of this SnapSpecDetails. The modes for the snap.

Allowed values for this property are: “DEFAULT”, “CLASSIC”, “JAIL_MODE”, “DEV_MODE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The mode of this SnapSpecDetails.
Return type:str
name

[Required] Gets the name of this SnapSpecDetails. The name of the snap to install.

Returns:The name of this SnapSpecDetails.
Return type:str
revision

Gets the revision of this SnapSpecDetails. The revision to install.

Returns:The revision of this SnapSpecDetails.
Return type:str
version

Gets the version of this SnapSpecDetails. The version of the snap.

Returns:The version of this SnapSpecDetails.
Return type:str