Profile

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

Bases: object

Object that defines the registration profile.

Attributes

ARCH_TYPE_AARCH64 A constant which can be used with the arch_type property of a Profile.
ARCH_TYPE_I686 A constant which can be used with the arch_type property of a Profile.
ARCH_TYPE_NOARCH A constant which can be used with the arch_type property of a Profile.
ARCH_TYPE_SRC A constant which can be used with the arch_type property of a Profile.
ARCH_TYPE_X86_64 A constant which can be used with the arch_type property of a Profile.
LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a Profile.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a Profile.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a Profile.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a Profile.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a Profile.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a Profile.
OS_FAMILY_ALL A constant which can be used with the os_family property of a Profile.
OS_FAMILY_ORACLE_LINUX_6 A constant which can be used with the os_family property of a Profile.
OS_FAMILY_ORACLE_LINUX_7 A constant which can be used with the os_family property of a Profile.
OS_FAMILY_ORACLE_LINUX_8 A constant which can be used with the os_family property of a Profile.
OS_FAMILY_ORACLE_LINUX_9 A constant which can be used with the os_family property of a Profile.
OS_FAMILY_WINDOWS_SERVER_2016 A constant which can be used with the os_family property of a Profile.
OS_FAMILY_WINDOWS_SERVER_2019 A constant which can be used with the os_family property of a Profile.
OS_FAMILY_WINDOWS_SERVER_2022 A constant which can be used with the os_family property of a Profile.
PROFILE_TYPE_GROUP A constant which can be used with the profile_type property of a Profile.
PROFILE_TYPE_LIFECYCLE A constant which can be used with the profile_type property of a Profile.
PROFILE_TYPE_SOFTWARESOURCE A constant which can be used with the profile_type property of a Profile.
PROFILE_TYPE_STATION A constant which can be used with the profile_type property of a Profile.
PROFILE_TYPE_WINDOWS_STANDALONE A constant which can be used with the profile_type property of a Profile.
REGISTRATION_TYPE_AUTONOMOUS_LINUX A constant which can be used with the registration_type property of a Profile.
REGISTRATION_TYPE_NON_OCI_LINUX A constant which can be used with the registration_type property of a Profile.
REGISTRATION_TYPE_OCI_LINUX A constant which can be used with the registration_type property of a Profile.
REGISTRATION_TYPE_OCI_WINDOWS A constant which can be used with the registration_type property of a Profile.
VENDOR_NAME_MICROSOFT A constant which can be used with the vendor_name property of a Profile.
VENDOR_NAME_ORACLE A constant which can be used with the vendor_name property of a Profile.
arch_type [Required] Gets the arch_type of this Profile.
compartment_id [Required] Gets the compartment_id of this Profile.
defined_tags Gets the defined_tags of this Profile.
description Gets the description of this Profile.
display_name [Required] Gets the display_name of this Profile.
freeform_tags Gets the freeform_tags of this Profile.
id [Required] Gets the id of this Profile.
is_default_profile Gets the is_default_profile of this Profile.
is_service_provided_profile Gets the is_service_provided_profile of this Profile.
lifecycle_state Gets the lifecycle_state of this Profile.
management_station_id Gets the management_station_id of this Profile.
os_family [Required] Gets the os_family of this Profile.
profile_type Gets the profile_type of this Profile.
registration_type Gets the registration_type of this Profile.
system_tags Gets the system_tags of this Profile.
time_created Gets the time_created of this Profile.
vendor_name [Required] Gets the vendor_name of this Profile.

Methods

__init__(**kwargs) Initializes a new Profile 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.
ARCH_TYPE_AARCH64 = 'AARCH64'

A constant which can be used with the arch_type property of a Profile. This constant has a value of “AARCH64”

ARCH_TYPE_I686 = 'I686'

A constant which can be used with the arch_type property of a Profile. This constant has a value of “I686”

ARCH_TYPE_NOARCH = 'NOARCH'

A constant which can be used with the arch_type property of a Profile. This constant has a value of “NOARCH”

ARCH_TYPE_SRC = 'SRC'

A constant which can be used with the arch_type property of a Profile. This constant has a value of “SRC”

ARCH_TYPE_X86_64 = 'X86_64'

A constant which can be used with the arch_type property of a Profile. This constant has a value of “X86_64”

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “FAILED”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a Profile. This constant has a value of “UPDATING”

OS_FAMILY_ALL = 'ALL'

A constant which can be used with the os_family property of a Profile. This constant has a value of “ALL”

OS_FAMILY_ORACLE_LINUX_6 = 'ORACLE_LINUX_6'

A constant which can be used with the os_family property of a Profile. This constant has a value of “ORACLE_LINUX_6”

OS_FAMILY_ORACLE_LINUX_7 = 'ORACLE_LINUX_7'

A constant which can be used with the os_family property of a Profile. This constant has a value of “ORACLE_LINUX_7”

OS_FAMILY_ORACLE_LINUX_8 = 'ORACLE_LINUX_8'

A constant which can be used with the os_family property of a Profile. This constant has a value of “ORACLE_LINUX_8”

OS_FAMILY_ORACLE_LINUX_9 = 'ORACLE_LINUX_9'

A constant which can be used with the os_family property of a Profile. This constant has a value of “ORACLE_LINUX_9”

OS_FAMILY_WINDOWS_SERVER_2016 = 'WINDOWS_SERVER_2016'

A constant which can be used with the os_family property of a Profile. This constant has a value of “WINDOWS_SERVER_2016”

OS_FAMILY_WINDOWS_SERVER_2019 = 'WINDOWS_SERVER_2019'

A constant which can be used with the os_family property of a Profile. This constant has a value of “WINDOWS_SERVER_2019”

OS_FAMILY_WINDOWS_SERVER_2022 = 'WINDOWS_SERVER_2022'

A constant which can be used with the os_family property of a Profile. This constant has a value of “WINDOWS_SERVER_2022”

PROFILE_TYPE_GROUP = 'GROUP'

A constant which can be used with the profile_type property of a Profile. This constant has a value of “GROUP”

PROFILE_TYPE_LIFECYCLE = 'LIFECYCLE'

A constant which can be used with the profile_type property of a Profile. This constant has a value of “LIFECYCLE”

PROFILE_TYPE_SOFTWARESOURCE = 'SOFTWARESOURCE'

A constant which can be used with the profile_type property of a Profile. This constant has a value of “SOFTWARESOURCE”

PROFILE_TYPE_STATION = 'STATION'

A constant which can be used with the profile_type property of a Profile. This constant has a value of “STATION”

PROFILE_TYPE_WINDOWS_STANDALONE = 'WINDOWS_STANDALONE'

A constant which can be used with the profile_type property of a Profile. This constant has a value of “WINDOWS_STANDALONE”

REGISTRATION_TYPE_AUTONOMOUS_LINUX = 'AUTONOMOUS_LINUX'

A constant which can be used with the registration_type property of a Profile. This constant has a value of “AUTONOMOUS_LINUX”

REGISTRATION_TYPE_NON_OCI_LINUX = 'NON_OCI_LINUX'

A constant which can be used with the registration_type property of a Profile. This constant has a value of “NON_OCI_LINUX”

REGISTRATION_TYPE_OCI_LINUX = 'OCI_LINUX'

A constant which can be used with the registration_type property of a Profile. This constant has a value of “OCI_LINUX”

REGISTRATION_TYPE_OCI_WINDOWS = 'OCI_WINDOWS'

A constant which can be used with the registration_type property of a Profile. This constant has a value of “OCI_WINDOWS”

VENDOR_NAME_MICROSOFT = 'MICROSOFT'

A constant which can be used with the vendor_name property of a Profile. This constant has a value of “MICROSOFT”

VENDOR_NAME_ORACLE = 'ORACLE'

A constant which can be used with the vendor_name property of a Profile. This constant has a value of “ORACLE”

__init__(**kwargs)

Initializes a new Profile 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:
  • id (str) – The value to assign to the id property of this Profile.
  • compartment_id (str) – The value to assign to the compartment_id property of this Profile.
  • display_name (str) – The value to assign to the display_name property of this Profile.
  • description (str) – The value to assign to the description property of this Profile.
  • management_station_id (str) – The value to assign to the management_station_id property of this Profile.
  • profile_type (str) – The value to assign to the profile_type property of this Profile. Allowed values for this property are: “SOFTWARESOURCE”, “GROUP”, “LIFECYCLE”, “STATION”, “WINDOWS_STANDALONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • vendor_name (str) – The value to assign to the vendor_name property of this Profile. Allowed values for this property are: “ORACLE”, “MICROSOFT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • os_family (str) – The value to assign to the os_family property of this Profile. Allowed values for this property are: “ORACLE_LINUX_9”, “ORACLE_LINUX_8”, “ORACLE_LINUX_7”, “ORACLE_LINUX_6”, “WINDOWS_SERVER_2016”, “WINDOWS_SERVER_2019”, “WINDOWS_SERVER_2022”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • arch_type (str) – The value to assign to the arch_type property of this Profile. Allowed values for this property are: “X86_64”, “AARCH64”, “I686”, “NOARCH”, “SRC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_created (datetime) – The value to assign to the time_created property of this Profile.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this Profile. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • registration_type (str) – The value to assign to the registration_type property of this Profile. Allowed values for this property are: “OCI_LINUX”, “NON_OCI_LINUX”, “OCI_WINDOWS”, “AUTONOMOUS_LINUX”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • is_default_profile (bool) – The value to assign to the is_default_profile property of this Profile.
  • is_service_provided_profile (bool) – The value to assign to the is_service_provided_profile property of this Profile.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Profile.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Profile.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this Profile.
arch_type

[Required] Gets the arch_type of this Profile. The architecture type.

Allowed values for this property are: “X86_64”, “AARCH64”, “I686”, “NOARCH”, “SRC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The arch_type of this Profile.
Return type:str
compartment_id

[Required] Gets the compartment_id of this Profile. The OCID of the compartment that contains the registration profile.

Returns:The compartment_id of this Profile.
Return type:str
defined_tags

Gets the defined_tags of this Profile. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this Profile.
Return type:dict(str, dict(str, object))
description

Gets the description of this Profile. The description of the registration profile.

Returns:The description of this Profile.
Return type:str
display_name

[Required] Gets the display_name of this Profile. A user-friendly name for the profile.

Returns:The display_name of this Profile.
Return type:str
freeform_tags

Gets the freeform_tags of this Profile. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}

Returns:The freeform_tags of this Profile.
Return type:dict(str, str)
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.

id

[Required] Gets the id of this Profile. The OCID of the registration profile.

Returns:The id of this Profile.
Return type:str
is_default_profile

Gets the is_default_profile of this Profile. Indicates if the profile is set as the default. There is exactly one default profile for a specified architecture, OS family, registration type, and vendor. When registering an instance with the corresonding characteristics, the default profile is used, unless another profile is specified.

Returns:The is_default_profile of this Profile.
Return type:bool
is_service_provided_profile

Gets the is_service_provided_profile of this Profile. Indicates if the profile was created by the service. OS Management Hub provides a limited set of standardized profiles that can be used to register Autonomous Linux or Windows instances.

Returns:The is_service_provided_profile of this Profile.
Return type:bool
lifecycle_state

Gets the lifecycle_state of this Profile. The current state of the registration profile.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this Profile.
Return type:str
management_station_id

Gets the management_station_id of this Profile. The OCID of the management station to associate with an instance once registered. Associating with a management station applies only to non-OCI instances.

Returns:The management_station_id of this Profile.
Return type:str
os_family

[Required] Gets the os_family of this Profile. The operating system family.

Allowed values for this property are: “ORACLE_LINUX_9”, “ORACLE_LINUX_8”, “ORACLE_LINUX_7”, “ORACLE_LINUX_6”, “WINDOWS_SERVER_2016”, “WINDOWS_SERVER_2019”, “WINDOWS_SERVER_2022”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The os_family of this Profile.
Return type:str
profile_type

Gets the profile_type of this Profile. The type of profile.

Allowed values for this property are: “SOFTWARESOURCE”, “GROUP”, “LIFECYCLE”, “STATION”, “WINDOWS_STANDALONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The profile_type of this Profile.
Return type:str
registration_type

Gets the registration_type of this Profile. The type of instance to register.

Allowed values for this property are: “OCI_LINUX”, “NON_OCI_LINUX”, “OCI_WINDOWS”, “AUTONOMOUS_LINUX”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The registration_type of this Profile.
Return type:str
system_tags

Gets the system_tags of this Profile. System tags for this resource. Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns:The system_tags of this Profile.
Return type:dict(str, dict(str, object))
time_created

Gets the time_created of this Profile. The time the registration profile was created (in RFC 3339 format).

Returns:The time_created of this Profile.
Return type:datetime
vendor_name

[Required] Gets the vendor_name of this Profile. The vendor of the operating system for the instance.

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

Returns:The vendor_name of this Profile.
Return type:str