TargetEnvironment¶
- class oci.cloud_migrations.models.TargetEnvironment(**kwargs)¶
Bases:
objectDescription of the target environment.
Attributes:
A constant which can be used with the target_environment_type property of a TargetEnvironment.
A constant which can be used with the target_environment_type property of a TargetEnvironment.
Gets the target_compartment_id of this TargetEnvironment.
[Required] Gets the target_environment_type of this TargetEnvironment.
Methods:
__init__(**kwargs)Initializes a new TargetEnvironment 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.
- TARGET_ENVIRONMENT_TYPE_OLVM_TARGET_ENV = 'OLVM_TARGET_ENV'¶
A constant which can be used with the target_environment_type property of a TargetEnvironment. This constant has a value of “OLVM_TARGET_ENV”
- TARGET_ENVIRONMENT_TYPE_VM_TARGET_ENV = 'VM_TARGET_ENV'¶
A constant which can be used with the target_environment_type property of a TargetEnvironment. This constant has a value of “VM_TARGET_ENV”
- __init__(**kwargs)¶
Initializes a new TargetEnvironment 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
target_compartment_id (str) – The value to assign to the target_compartment_id property of this TargetEnvironment.
target_environment_type (str) – The value to assign to the target_environment_type property of this TargetEnvironment. Allowed values for this property are: “VM_TARGET_ENV”, “OLVM_TARGET_ENV”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- 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.
- property target_compartment_id¶
Gets the target_compartment_id of this TargetEnvironment. Target compartment identifier
- Returns
The target_compartment_id of this TargetEnvironment.
- Return type
str
- property target_environment_type¶
[Required] Gets the target_environment_type of this TargetEnvironment. The type of target environment.
Allowed values for this property are: “VM_TARGET_ENV”, “OLVM_TARGET_ENV”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The target_environment_type of this TargetEnvironment.
- Return type
str