ruạṛ
a N��fJ � @ 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 d� Ze dd � �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Zejd(d'� �Zed)d*� �Zejd+d*� �Zed,d-� �Zejd.d-� �Zed/d0� �Zejd1d0� �Zed2d3� �Zejd4d3� �Zed5d6� �Zejd7d6� �Zed8d9� �Zejd:d9� �Zd;d<� Z d=d>� Z!d?d@� Z"dAS )B�TargetAssetz* Description of the target asset. �CREATING�UPDATING�NEEDS_ATTENTION�ACTIVE�DELETING�DELETED�FAILED�INSTANCEc K s� dddddddddddddddd�| _ dd d ddd dddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _dS )a� Initializes a new TargetAsset 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.cloud_migrations.models.VmTargetAsset` 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 TargetAsset. :type id: str :param display_name: The value to assign to the display_name property of this TargetAsset. :type display_name: str :param lifecycle_state: The value to assign to the lifecycle_state property of this TargetAsset. Allowed values for this property are: "CREATING", "UPDATING", "NEEDS_ATTENTION", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this TargetAsset. :type lifecycle_details: str :param migration_plan_id: The value to assign to the migration_plan_id property of this TargetAsset. :type migration_plan_id: str :param compartment_id: The value to assign to the compartment_id property of this TargetAsset. :type compartment_id: str :param created_resource_id: The value to assign to the created_resource_id property of this TargetAsset. :type created_resource_id: str :param type: The value to assign to the type property of this TargetAsset. Allowed values for this property are: "INSTANCE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param is_excluded_from_execution: The value to assign to the is_excluded_from_execution property of this TargetAsset. :type is_excluded_from_execution: bool :param compatibility_messages: The value to assign to the compatibility_messages property of this TargetAsset. :type compatibility_messages: list[oci.cloud_migrations.models.CompatibilityMessage] :param estimated_cost: The value to assign to the estimated_cost property of this TargetAsset. :type estimated_cost: oci.cloud_migrations.models.CostEstimation :param time_created: The value to assign to the time_created property of this TargetAsset. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this TargetAsset. :type time_updated: datetime :param time_assessed: The value to assign to the time_assessed property of this TargetAsset. :type time_assessed: datetime :param migration_asset: The value to assign to the migration_asset property of this TargetAsset. :type migration_asset: oci.cloud_migrations.models.MigrationAsset �str�boolzlist[CompatibilityMessage]�CostEstimation�datetime�MigrationAsset)�id�display_name�lifecycle_state�lifecycle_details�migration_plan_id�compartment_id�created_resource_id�type�is_excluded_from_execution�compatibility_messages�estimated_cost�time_created�time_updated� time_assessed�migration_assetr �displayName�lifecycleState�lifecycleDetails�migrationPlanId� compartmentId�createdResourceIdr �isExcludedFromExecution�compatibilityMessages� estimatedCost�timeCreated�timeUpdated�timeAssessed�migrationAssetN)� swagger_types� attribute_map�_id� _display_name�_lifecycle_state�_lifecycle_details�_migration_plan_id�_compartment_id�_created_resource_id�_type�_is_excluded_from_execution�_compatibility_messages�_estimated_cost� _time_created� _time_updated�_time_assessed�_migration_asset)�self�kwargs� rC ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/cloud_migrations/models/target_asset.py�__init__0 s^ K��zTargetAsset.__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 � VmTargetAssetr NrC )�object_dictionaryr rC rC rD �get_subtype� s zTargetAsset.get_subtypec C s | j S )z� **[Required]** Gets the id of this TargetAsset. Unique identifier that is immutable on creation. :return: The id of this TargetAsset. :rtype: str �r2 �rA rC rC rD r � s zTargetAsset.idc C s || _ dS )z� Sets the id of this TargetAsset. Unique identifier that is immutable on creation. :param id: The id of this TargetAsset. :type: str NrI )rA r rC rC rD r � s c C s | j S )a Gets the display_name of this TargetAsset. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The display_name of this TargetAsset. :rtype: str �r3 rJ rC rC rD r � s zTargetAsset.display_namec C s || _ dS )a Sets the display_name of this TargetAsset. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param display_name: The display_name of this TargetAsset. :type: str NrK )rA r rC rC rD r � s c C s | j S )a� **[Required]** Gets the lifecycle_state of this TargetAsset. The current state of the target asset. Allowed values for this property are: "CREATING", "UPDATING", "NEEDS_ATTENTION", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this TargetAsset. :rtype: str )r4 rJ rC rC rD r � s zTargetAsset.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this TargetAsset. The current state of the target asset. :param lifecycle_state: The lifecycle_state of this TargetAsset. :type: str )r r r r r r r �UNKNOWN_ENUM_VALUEN)r r4 )rA r �allowed_valuesrC rC rD r � s c C s | j S )a0 Gets the lifecycle_details of this TargetAsset. A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state. :return: The lifecycle_details of this TargetAsset. :rtype: str �r5 rJ rC rC rD r s zTargetAsset.lifecycle_detailsc C s || _ dS )a@ Sets the lifecycle_details of this TargetAsset. A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state. :param lifecycle_details: The lifecycle_details of this TargetAsset. :type: str NrN )rA r rC rC rD r s c C s | j S )z� **[Required]** Gets the migration_plan_id of this TargetAsset. OCID of the associated migration plan. :return: The migration_plan_id of this TargetAsset. :rtype: str �r6 rJ rC rC rD r ! s zTargetAsset.migration_plan_idc C s || _ dS )z� Sets the migration_plan_id of this TargetAsset. OCID of the associated migration plan. :param migration_plan_id: The migration_plan_id of this TargetAsset. :type: str NrO )rA r rC rC rD r - s c C s | j S )z� Gets the compartment_id of this TargetAsset. Compartment identifier :return: The compartment_id of this TargetAsset. :rtype: str �r7 rJ rC rC rD r 9 s zTargetAsset.compartment_idc C s || _ dS )z� Sets the compartment_id of this TargetAsset. Compartment identifier :param compartment_id: The compartment_id of this TargetAsset. :type: str NrP )rA r rC rC rD r E s c C s | j S )z� Gets the created_resource_id of this TargetAsset. Created resource identifier :return: The created_resource_id of this TargetAsset. :rtype: str �r8 rJ rC rC rD r Q s zTargetAsset.created_resource_idc C s || _ dS )z� Sets the created_resource_id of this TargetAsset. Created resource identifier :param created_resource_id: The created_resource_id of this TargetAsset. :type: str NrQ )rA r rC rC rD r ] s c C s | j S )aY **[Required]** Gets the type of this TargetAsset. The type of target asset. Allowed values for this property are: "INSTANCE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this TargetAsset. :rtype: str )r9 rJ rC rC rD r i s zTargetAsset.typec C s dg}t ||�sd}|| _dS )z� Sets the type of this TargetAsset. The type of target asset. :param type: The type of this TargetAsset. :type: str r rL N)r r9 )rA r rM rC rC rD r x s c C s | j S )z� **[Required]** Gets the is_excluded_from_execution of this TargetAsset. A boolean indicating whether the asset should be migrated. :return: The is_excluded_from_execution of this TargetAsset. :rtype: bool �r: rJ rC rC rD r � s z&TargetAsset.is_excluded_from_executionc C s || _ dS )a Sets the is_excluded_from_execution of this TargetAsset. A boolean indicating whether the asset should be migrated. :param is_excluded_from_execution: The is_excluded_from_execution of this TargetAsset. :type: bool NrR )rA r rC rC rD r � s c C s | j S )a Gets the compatibility_messages of this TargetAsset. Messages about the compatibility issues. :return: The compatibility_messages of this TargetAsset. :rtype: list[oci.cloud_migrations.models.CompatibilityMessage] �r; rJ rC rC rD r � s z"TargetAsset.compatibility_messagesc C s || _ dS )a Sets the compatibility_messages of this TargetAsset. Messages about the compatibility issues. :param compatibility_messages: The compatibility_messages of this TargetAsset. :type: list[oci.cloud_migrations.models.CompatibilityMessage] NrS )rA r rC rC rD r � s c C s | j S )z� **[Required]** Gets the estimated_cost of this TargetAsset. :return: The estimated_cost of this TargetAsset. :rtype: oci.cloud_migrations.models.CostEstimation �r<