CreatePublicationPackage

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

Bases: object

A base object for creating a publication package.

Attributes:

PACKAGE_TYPE_CONTAINER

A constant which can be used with the package_type property of a CreatePublicationPackage.

PACKAGE_TYPE_IMAGE

A constant which can be used with the package_type property of a CreatePublicationPackage.

PACKAGE_TYPE_KUBERNETES

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_CONTAINER = 'CONTAINER'

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

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_KUBERNETES = 'KUBERNETES'

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

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”, “CONTAINER”, “KUBERNETES”

  • 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.

property 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.

property operating_system

[Required] Gets the operating_system of this CreatePublicationPackage.

Returns

The operating_system of this CreatePublicationPackage.

Return type

oci.marketplace.models.OperatingSystem

property package_type

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

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

Returns

The package_type of this CreatePublicationPackage.

Return type

str

property package_version

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

Returns

The package_version of this CreatePublicationPackage.

Return type

str