InstallSnapDetails¶
-
class
oci.os_management_hub.models.InstallSnapDetails(**kwargs)¶ Bases:
objectProvides the information used to install a snap.
Attributes
MODE_CLASSICA constant which can be used with the mode property of a InstallSnapDetails. MODE_DEFAULTA constant which can be used with the mode property of a InstallSnapDetails. MODE_DEV_MODEA constant which can be used with the mode property of a InstallSnapDetails. MODE_JAIL_MODEA constant which can be used with the mode property of a InstallSnapDetails. channelGets the channel of this InstallSnapDetails. is_signedGets the is_signed of this InstallSnapDetails. modeGets the mode of this InstallSnapDetails. name[Required] Gets the name of this InstallSnapDetails. revisionGets the revision of this InstallSnapDetails. Methods
__init__(**kwargs)Initializes a new InstallSnapDetails object with values from keyword arguments. -
MODE_CLASSIC= 'CLASSIC'¶ A constant which can be used with the mode property of a InstallSnapDetails. This constant has a value of “CLASSIC”
-
MODE_DEFAULT= 'DEFAULT'¶ A constant which can be used with the mode property of a InstallSnapDetails. This constant has a value of “DEFAULT”
-
MODE_DEV_MODE= 'DEV_MODE'¶ A constant which can be used with the mode property of a InstallSnapDetails. 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 InstallSnapDetails. This constant has a value of “JAIL_MODE”
-
__init__(**kwargs)¶ Initializes a new InstallSnapDetails 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 InstallSnapDetails.
- is_signed (bool) – The value to assign to the is_signed property of this InstallSnapDetails.
- mode (str) – The value to assign to the mode property of this InstallSnapDetails. 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 InstallSnapDetails.
- revision (str) – The value to assign to the revision property of this InstallSnapDetails.
-
channel¶ Gets the channel of this InstallSnapDetails. The snap channel to install from (e.g. stable, 1.2/edge, beta, candidate, or a custom channel).
Returns: The channel of this InstallSnapDetails. Return type: str
-
is_signed¶ Gets the is_signed of this InstallSnapDetails. If false, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution.
Returns: The is_signed of this InstallSnapDetails. Return type: bool
-
mode¶ Gets the mode of this InstallSnapDetails. The confinement mode 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 InstallSnapDetails. Return type: str
-
name¶ [Required] Gets the name of this InstallSnapDetails. The name of the snap to install.
Returns: The name of this InstallSnapDetails. Return type: str
-
revision¶ Gets the revision of this InstallSnapDetails. The snap revision to install.
Returns: The revision of this InstallSnapDetails. Return type: str
-