/
lib
/
python3.9
/
site-packages
/
oci
/
globally_distributed_database
/
models
/
__pycache__
/
Upload File
HOME
a ���f�? � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dd � Zedd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zd1d2� Zd3d4� Zd5d6� Z d7S )8�ShardedDatabasez$ Sharded Database resource. � DEDICATED�ACTIVE�FAILED�NEEDS_ATTENTION�INACTIVE�DELETING�DELETED�UPDATING�CREATING�UNAVAILABLEc K s� dddddddddddd�| _ dddd d ddd dddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _dS )ai Initializes a new ShardedDatabase 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: * :class:`~oci.globally_distributed_database.models.DedicatedShardedDatabase` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this ShardedDatabase. :type id: str :param compartment_id: The value to assign to the compartment_id property of this ShardedDatabase. :type compartment_id: str :param db_deployment_type: The value to assign to the db_deployment_type property of this ShardedDatabase. Allowed values for this property are: "DEDICATED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type db_deployment_type: str :param display_name: The value to assign to the display_name property of this ShardedDatabase. :type display_name: str :param time_created: The value to assign to the time_created property of this ShardedDatabase. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this ShardedDatabase. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this ShardedDatabase. Allowed values for this property are: "ACTIVE", "FAILED", "NEEDS_ATTENTION", "INACTIVE", "DELETING", "DELETED", "UPDATING", "CREATING", "UNAVAILABLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_state_details: The value to assign to the lifecycle_state_details property of this ShardedDatabase. :type lifecycle_state_details: str :param freeform_tags: The value to assign to the freeform_tags property of this ShardedDatabase. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this ShardedDatabase. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this ShardedDatabase. :type system_tags: dict(str, dict(str, object)) �strZdatetimezdict(str, str)zdict(str, dict(str, object)))�id�compartment_id�db_deployment_type�display_name�time_created�time_updated�lifecycle_state�lifecycle_state_details� freeform_tags�defined_tags�system_tagsr Z compartmentId�dbDeploymentTypeZdisplayNameZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleStateDetailsZfreeformTagsZdefinedTagsZ systemTagsN) Z swagger_typesZ attribute_map�_id�_compartment_id�_db_deployment_type� _display_name� _time_created� _time_updated�_lifecycle_state�_lifecycle_state_details�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� r+ �]/usr/lib/python3.9/site-packages/oci/globally_distributed_database/models/sharded_database.py�__init__: sF ;��zShardedDatabase.__init__c C s | d }|dkrdS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r ZDedicatedShardedDatabaser Nr+ )Zobject_dictionary�typer+ r+ r, �get_subtype� s zShardedDatabase.get_subtypec C s | j S )z� **[Required]** Gets the id of this ShardedDatabase. Sharded Database identifier :return: The id of this ShardedDatabase. :rtype: str �r �r) r+ r+ r, r � s zShardedDatabase.idc C s || _ dS )z� Sets the id of this ShardedDatabase. Sharded Database identifier :param id: The id of this ShardedDatabase. :type: str Nr0 )r) r r+ r+ r, r � s c C s | j S )z� **[Required]** Gets the compartment_id of this ShardedDatabase. Identifier of the compartment in which sharded database exists. :return: The compartment_id of this ShardedDatabase. :rtype: str �r r1 r+ r+ r, r � s zShardedDatabase.compartment_idc C s || _ dS )z� Sets the compartment_id of this ShardedDatabase. Identifier of the compartment in which sharded database exists. :param compartment_id: The compartment_id of this ShardedDatabase. :type: str Nr2 )r) r r+ r+ r, r � s c C s | j S )a� **[Required]** Gets the db_deployment_type of this ShardedDatabase. The database deployment type. Allowed values for this property are: "DEDICATED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The db_deployment_type of this ShardedDatabase. :rtype: str )r r1 r+ r+ r, r � s z"ShardedDatabase.db_deployment_typec C s dg}t ||�sd}|| _dS )z� Sets the db_deployment_type of this ShardedDatabase. The database deployment type. :param db_deployment_type: The db_deployment_type of this ShardedDatabase. :type: str r �UNKNOWN_ENUM_VALUEN)r r )r) r �allowed_valuesr+ r+ r, r � s c C s | j S )z� **[Required]** Gets the display_name of this ShardedDatabase. Oracle sharded database display name. :return: The display_name of this ShardedDatabase. :rtype: str �r! r1 r+ r+ r, r � s zShardedDatabase.display_namec C s || _ dS )z� Sets the display_name of this ShardedDatabase. Oracle sharded database display name. :param display_name: The display_name of this ShardedDatabase. :type: str Nr5 )r) r r+ r+ r, r s c C s | j S )a **[Required]** Gets the time_created of this ShardedDatabase. The time the the Sharded Database was created. An RFC3339 formatted datetime string :return: The time_created of this ShardedDatabase. :rtype: datetime �r"