Index

class oci.nosql.models.Index(**kwargs)

Bases: object

Information about an index.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a Index.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a Index.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a Index.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a Index.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a Index.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a Index.
compartment_id Gets the compartment_id of this Index.
keys Gets the keys of this Index.
lifecycle_details Gets the lifecycle_details of this Index.
lifecycle_state Gets the lifecycle_state of this Index.
name Gets the name of this Index.
table_id Gets the table_id of this Index.
table_name Gets the table_name of this Index.

Methods

__init__(**kwargs) Initializes a new Index object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

__init__(**kwargs)

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

Parameters:
  • name (str) – The value to assign to the name property of this Index.
  • compartment_id (str) – The value to assign to the compartment_id property of this Index.
  • table_name (str) – The value to assign to the table_name property of this Index.
  • table_id (str) – The value to assign to the table_id property of this Index.
  • keys (list[oci.nosql.models.IndexKey]) – The value to assign to the keys property of this Index.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this Index. 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’.
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this Index.
compartment_id

Gets the compartment_id of this Index. Compartment Identifier.

Returns:The compartment_id of this Index.
Return type:str
keys

Gets the keys of this Index. A set of keys for a secondary index.

Returns:The keys of this Index.
Return type:list[oci.nosql.models.IndexKey]
lifecycle_details

Gets the lifecycle_details of this Index. A message describing the current state in more detail.

Returns:The lifecycle_details of this Index.
Return type:str
lifecycle_state

Gets the lifecycle_state of this Index. The state of an index.

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 Index.
Return type:str
name

Gets the name of this Index. Index name.

Returns:The name of this Index.
Return type:str
table_id

Gets the table_id of this Index. the OCID of the table to which this index belongs.

Returns:The table_id of this Index.
Return type:str
table_name

Gets the table_name of this Index. The name of the table to which this index belongs.

Returns:The table_name of this Index.
Return type:str