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.
display_name Gets the display_name 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.
compartment_id

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

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

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
selection

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

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]