CreatePropertyDetails

class oci.fleet_apps_management.models.CreatePropertyDetails(**kwargs)

Bases: object

The information about new Property.

Attributes

SELECTION_DEFAULT_TEXT A constant which can be used with the selection property of a CreatePropertyDetails.
SELECTION_MULTI_CHOICE A constant which can be used with the selection property of a CreatePropertyDetails.
SELECTION_SINGLE_CHOICE A constant which can be used with the selection property of a CreatePropertyDetails.
VALUE_TYPE_NUMERIC A constant which can be used with the value_type property of a CreatePropertyDetails.
VALUE_TYPE_STRING A constant which can be used with the value_type property of a CreatePropertyDetails.
compartment_id [Required] Gets the compartment_id of this CreatePropertyDetails.
defined_tags Gets the defined_tags of this CreatePropertyDetails.
display_name [Required] Gets the display_name of this CreatePropertyDetails.
freeform_tags Gets the freeform_tags of this CreatePropertyDetails.
selection [Required] Gets the selection of this CreatePropertyDetails.
value_type [Required] Gets the value_type of this CreatePropertyDetails.
values Gets the values of this CreatePropertyDetails.

Methods

__init__(**kwargs) Initializes a new CreatePropertyDetails object with values from keyword arguments.
SELECTION_DEFAULT_TEXT = 'DEFAULT_TEXT'

A constant which can be used with the selection property of a CreatePropertyDetails. This constant has a value of “DEFAULT_TEXT”

SELECTION_MULTI_CHOICE = 'MULTI_CHOICE'

A constant which can be used with the selection property of a CreatePropertyDetails. This constant has a value of “MULTI_CHOICE”

SELECTION_SINGLE_CHOICE = 'SINGLE_CHOICE'

A constant which can be used with the selection property of a CreatePropertyDetails. This constant has a value of “SINGLE_CHOICE”

VALUE_TYPE_NUMERIC = 'NUMERIC'

A constant which can be used with the value_type property of a CreatePropertyDetails. This constant has a value of “NUMERIC”

VALUE_TYPE_STRING = 'STRING'

A constant which can be used with the value_type property of a CreatePropertyDetails. This constant has a value of “STRING”

__init__(**kwargs)

Initializes a new CreatePropertyDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • compartment_id (str) – The value to assign to the compartment_id property of this CreatePropertyDetails.
  • display_name (str) – The value to assign to the display_name property of this CreatePropertyDetails.
  • selection (str) – The value to assign to the selection property of this CreatePropertyDetails. Allowed values for this property are: “SINGLE_CHOICE”, “MULTI_CHOICE”, “DEFAULT_TEXT”
  • value_type (str) – The value to assign to the value_type property of this CreatePropertyDetails. Allowed values for this property are: “STRING”, “NUMERIC”
  • values (list[str]) – The value to assign to the values property of this CreatePropertyDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreatePropertyDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreatePropertyDetails.
compartment_id

[Required] Gets the compartment_id of this CreatePropertyDetails. Compartment OCID

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

Gets the defined_tags of this CreatePropertyDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this CreatePropertyDetails.
Return type:dict(str, dict(str, object))
display_name

[Required] Gets the display_name of this CreatePropertyDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Example: My new resource

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

Gets the freeform_tags of this CreatePropertyDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this CreatePropertyDetails.
Return type:dict(str, str)
selection

[Required] Gets the selection of this CreatePropertyDetails. Text selection of the property.

Allowed values for this property are: “SINGLE_CHOICE”, “MULTI_CHOICE”, “DEFAULT_TEXT”

Returns:The selection of this CreatePropertyDetails.
Return type:str
value_type

[Required] Gets the value_type of this CreatePropertyDetails. Format of the value.

Allowed values for this property are: “STRING”, “NUMERIC”

Returns:The value_type of this CreatePropertyDetails.
Return type:str
values

Gets the values of this CreatePropertyDetails. Values of the property (must be a single value if selection = ‘SINGLE_CHOICE’).

Returns:The values of this CreatePropertyDetails.
Return type:list[str]