ResourceAssessmentStrategy¶
-
class
oci.cloud_migrations.models.
ResourceAssessmentStrategy
(**kwargs)¶ Bases:
object
Migration strategy for the resource to be migrated.
Attributes
RESOURCE_TYPE_ALL
A constant which can be used with the resource_type property of a ResourceAssessmentStrategy. RESOURCE_TYPE_CPU
A constant which can be used with the resource_type property of a ResourceAssessmentStrategy. RESOURCE_TYPE_MEMORY
A constant which can be used with the resource_type property of a ResourceAssessmentStrategy. STRATEGY_TYPE_AS_IS
A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy. STRATEGY_TYPE_AVERAGE
A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy. STRATEGY_TYPE_PEAK
A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy. STRATEGY_TYPE_PERCENTILE
A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy. resource_type
[Required] Gets the resource_type of this ResourceAssessmentStrategy. strategy_type
[Required] Gets the strategy_type of this ResourceAssessmentStrategy. Methods
__init__
(**kwargs)Initializes a new ResourceAssessmentStrategy 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. -
RESOURCE_TYPE_ALL
= 'ALL'¶ A constant which can be used with the resource_type property of a ResourceAssessmentStrategy. This constant has a value of “ALL”
-
RESOURCE_TYPE_CPU
= 'CPU'¶ A constant which can be used with the resource_type property of a ResourceAssessmentStrategy. This constant has a value of “CPU”
-
RESOURCE_TYPE_MEMORY
= 'MEMORY'¶ A constant which can be used with the resource_type property of a ResourceAssessmentStrategy. This constant has a value of “MEMORY”
-
STRATEGY_TYPE_AS_IS
= 'AS_IS'¶ A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy. This constant has a value of “AS_IS”
-
STRATEGY_TYPE_AVERAGE
= 'AVERAGE'¶ A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy. This constant has a value of “AVERAGE”
-
STRATEGY_TYPE_PEAK
= 'PEAK'¶ A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy. This constant has a value of “PEAK”
-
STRATEGY_TYPE_PERCENTILE
= 'PERCENTILE'¶ A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy. This constant has a value of “PERCENTILE”
-
__init__
(**kwargs)¶ Initializes a new ResourceAssessmentStrategy 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:
PeakResourceAssessmentStrategy
PercentileResourceAssessmentStrategy
AverageResourceAssessmentStrategy
AsIsResourceAssessmentStrategy
The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - resource_type (str) – The value to assign to the resource_type property of this ResourceAssessmentStrategy. Allowed values for this property are: “CPU”, “MEMORY”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- strategy_type (str) – The value to assign to the strategy_type property of this ResourceAssessmentStrategy. Allowed values for this property are: “AS_IS”, “AVERAGE”, “PEAK”, “PERCENTILE”, ‘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.
-
resource_type
¶ [Required] Gets the resource_type of this ResourceAssessmentStrategy. The type of resource.
Allowed values for this property are: “CPU”, “MEMORY”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The resource_type of this ResourceAssessmentStrategy. Return type: str
-
strategy_type
¶ [Required] Gets the strategy_type of this ResourceAssessmentStrategy. The type of strategy used for migration.
Allowed values for this property are: “AS_IS”, “AVERAGE”, “PEAK”, “PERCENTILE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The strategy_type of this ResourceAssessmentStrategy. Return type: str
-