CreatePublicationPackage

class oci.marketplace.models.CreatePublicationPackage(**kwargs)

Bases: object

A base object for creating a publication package.

Attributes

PACKAGE_TYPE_IMAGE A constant which can be used with the package_type property of a CreatePublicationPackage.
PACKAGE_TYPE_ORCHESTRATION A constant which can be used with the package_type property of a CreatePublicationPackage.
eula [Required] Gets the eula of this CreatePublicationPackage.
operating_system [Required] Gets the operating_system of this CreatePublicationPackage.
package_type [Required] Gets the package_type of this CreatePublicationPackage.
package_version [Required] Gets the package_version of this CreatePublicationPackage.

Methods

__init__(**kwargs) Initializes a new CreatePublicationPackage object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
PACKAGE_TYPE_IMAGE = 'IMAGE'

A constant which can be used with the package_type property of a CreatePublicationPackage. This constant has a value of “IMAGE”

PACKAGE_TYPE_ORCHESTRATION = 'ORCHESTRATION'

A constant which can be used with the package_type property of a CreatePublicationPackage. This constant has a value of “ORCHESTRATION”

__init__(**kwargs)

Initializes a new CreatePublicationPackage object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • package_version (str) – The value to assign to the package_version property of this CreatePublicationPackage.
  • package_type (str) – The value to assign to the package_type property of this CreatePublicationPackage. Allowed values for this property are: “ORCHESTRATION”, “IMAGE”
  • operating_system (oci.marketplace.models.OperatingSystem) – The value to assign to the operating_system property of this CreatePublicationPackage.
  • eula (list[oci.marketplace.models.Eula]) – The value to assign to the eula property of this CreatePublicationPackage.
eula

[Required] Gets the eula of this CreatePublicationPackage. The end user license agreeement (EULA) that consumers of this listing must accept.

Returns:The eula of this CreatePublicationPackage.
Return type:list[oci.marketplace.models.Eula]
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

operating_system

[Required] Gets the operating_system of this CreatePublicationPackage.

Returns:The operating_system of this CreatePublicationPackage.
Return type:oci.marketplace.models.OperatingSystem
package_type

[Required] Gets the package_type of this CreatePublicationPackage. The package’s type.

Allowed values for this property are: “ORCHESTRATION”, “IMAGE”

Returns:The package_type of this CreatePublicationPackage.
Return type:str
package_version

[Required] Gets the package_version of this CreatePublicationPackage. The package version.

Returns:The package_version of this CreatePublicationPackage.
Return type:str