CreateImagePublicationPackage

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

Bases: oci.marketplace.models.create_publication_package.CreatePublicationPackage

An object for creating image package

Attributes

PACKAGE_TYPE_IMAGE str(object=’’) -> str
PACKAGE_TYPE_ORCHESTRATION str(object=’’) -> str
eula [Required] Gets the eula of this CreatePublicationPackage.
image_id Gets the image_id of this CreateImagePublicationPackage.
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 CreateImagePublicationPackage 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'
PACKAGE_TYPE_ORCHESTRATION = 'ORCHESTRATION'
__init__(**kwargs)

Initializes a new CreateImagePublicationPackage object with values from keyword arguments. The default value of the package_type attribute of this class is IMAGE and it should not be changed. 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 CreateImagePublicationPackage.
  • package_type (str) – The value to assign to the package_type property of this CreateImagePublicationPackage. 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 CreateImagePublicationPackage.
  • eula (list[oci.marketplace.models.Eula]) – The value to assign to the eula property of this CreateImagePublicationPackage.
  • image_id (str) – The value to assign to the image_id property of this CreateImagePublicationPackage.
eula

[Required] Gets the eula of this CreatePublicationPackage. End User License Agreeement that a consumer of this listing has to 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.

image_id

Gets the image_id of this CreateImagePublicationPackage. base image id of the listing

Returns:The image_id of this CreateImagePublicationPackage.
Return type:str
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. Type of the artifact of the listing

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 version of the package

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