DistributedDatabaseShardDatabase

class oci.distributed_database_v26.models.DistributedDatabaseShardDatabase(**kwargs)

Bases: object

Details of a distributed database shard.

Attributes

SOURCE_EXISTING_DB_HOME A constant which can be used with the source property of a DistributedDatabaseShardDatabase.
SOURCE_XD_EXISTING_CLUSTER A constant which can be used with the source property of a DistributedDatabaseShardDatabase.
SOURCE_XS_EXISTING_CLUSTER A constant which can be used with the source property of a DistributedDatabaseShardDatabase.
SOURCE_XS_NEW_CLUSTER A constant which can be used with the source property of a DistributedDatabaseShardDatabase.
SOURCE_XS_NEW_VAULT_AND_CLUSTER A constant which can be used with the source property of a DistributedDatabaseShardDatabase.
metadata Gets the metadata of this DistributedDatabaseShardDatabase.
name [Required] Gets the name of this DistributedDatabaseShardDatabase.
source [Required] Gets the source of this DistributedDatabaseShardDatabase.
time_created [Required] Gets the time_created of this DistributedDatabaseShardDatabase.
time_updated [Required] Gets the time_updated of this DistributedDatabaseShardDatabase.

Methods

__init__(**kwargs) Initializes a new DistributedDatabaseShardDatabase 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.
SOURCE_EXISTING_DB_HOME = 'EXISTING_DB_HOME'

A constant which can be used with the source property of a DistributedDatabaseShardDatabase. This constant has a value of “EXISTING_DB_HOME”

SOURCE_XD_EXISTING_CLUSTER = 'XD_EXISTING_CLUSTER'

A constant which can be used with the source property of a DistributedDatabaseShardDatabase. This constant has a value of “XD_EXISTING_CLUSTER”

SOURCE_XS_EXISTING_CLUSTER = 'XS_EXISTING_CLUSTER'

A constant which can be used with the source property of a DistributedDatabaseShardDatabase. This constant has a value of “XS_EXISTING_CLUSTER”

SOURCE_XS_NEW_CLUSTER = 'XS_NEW_CLUSTER'

A constant which can be used with the source property of a DistributedDatabaseShardDatabase. This constant has a value of “XS_NEW_CLUSTER”

SOURCE_XS_NEW_VAULT_AND_CLUSTER = 'XS_NEW_VAULT_AND_CLUSTER'

A constant which can be used with the source property of a DistributedDatabaseShardDatabase. This constant has a value of “XS_NEW_VAULT_AND_CLUSTER”

__init__(**kwargs)

Initializes a new DistributedDatabaseShardDatabase 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:
  • source (str) – The value to assign to the source property of this DistributedDatabaseShardDatabase. Allowed values for this property are: “XS_EXISTING_CLUSTER”, “XS_NEW_CLUSTER”, “XS_NEW_VAULT_AND_CLUSTER”, “XD_EXISTING_CLUSTER”, “EXISTING_DB_HOME”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • name (str) – The value to assign to the name property of this DistributedDatabaseShardDatabase.
  • time_created (datetime) – The value to assign to the time_created property of this DistributedDatabaseShardDatabase.
  • time_updated (datetime) – The value to assign to the time_updated property of this DistributedDatabaseShardDatabase.
  • metadata (oci.distributed_database_v26.models.DistributedDbMetadata) – The value to assign to the metadata property of this DistributedDatabaseShardDatabase.
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.

metadata

Gets the metadata of this DistributedDatabaseShardDatabase.

Returns:The metadata of this DistributedDatabaseShardDatabase.
Return type:oci.distributed_database_v26.models.DistributedDbMetadata
name

[Required] Gets the name of this DistributedDatabaseShardDatabase. Name of the shard.

Returns:The name of this DistributedDatabaseShardDatabase.
Return type:str
source

[Required] Gets the source of this DistributedDatabaseShardDatabase. The source of the Globally distributed database type. Use XS_EXISTING_CLUSTER for a database on Exascale Infrastructure that uses a pre-existing cluster. Use XS_NEW_CLUSTER for a database on Exascale Infrastructure that requires a new cluster created from scratch. Use XS_NEW_VAULT_AND_CLUSTER for a database on Exascale Infrastructure that requires a new vault and cluster created from scratch. Use XD_EXISTING_CLUSTER for a database on Dedicated Infrastructure that uses a pre-existing cluster. Use EXISTING_DB_HOME for a database on a pre-existing database home.

Allowed values for this property are: “XS_EXISTING_CLUSTER”, “XS_NEW_CLUSTER”, “XS_NEW_VAULT_AND_CLUSTER”, “XD_EXISTING_CLUSTER”, “EXISTING_DB_HOME”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The source of this DistributedDatabaseShardDatabase.
Return type:str
time_created

[Required] Gets the time_created of this DistributedDatabaseShardDatabase. The time the shard was created. An RFC3339 formatted datetime string.

Returns:The time_created of this DistributedDatabaseShardDatabase.
Return type:datetime
time_updated

[Required] Gets the time_updated of this DistributedDatabaseShardDatabase. The time the shard was last updated. An RFC3339 formatted datetime string.

Returns:The time_updated of this DistributedDatabaseShardDatabase.
Return type:datetime