InstancePoolRefresh¶
- class oci.core.models.InstancePoolRefresh(**kwargs)¶
Bases:
objectAn instance pool refresh is an asynchronous operation that replaces eligible instances in an instance pool with instances launched from the pool’s target instance configuration.
Attributes:
A constant which can be used with the lifecycle_state property of a InstancePoolRefresh.
A constant which can be used with the lifecycle_state property of a InstancePoolRefresh.
A constant which can be used with the lifecycle_state property of a InstancePoolRefresh.
A constant which can be used with the lifecycle_state property of a InstancePoolRefresh.
A constant which can be used with the lifecycle_state property of a InstancePoolRefresh.
A constant which can be used with the lifecycle_state property of a InstancePoolRefresh.
[Required] Gets the compartment_id of this InstancePoolRefresh.
[Required] Gets the id of this InstancePoolRefresh.
[Required] Gets the instance_pool_id of this InstancePoolRefresh.
Gets the is_full_refresh of this InstancePoolRefresh.
[Required] Gets the lifecycle_state of this InstancePoolRefresh.
Gets the max_healthy_percent of this InstancePoolRefresh.
Gets the percent_complete of this InstancePoolRefresh.
Gets the refresh_batch_size of this InstancePoolRefresh.
Gets the remaining_member_count of this InstancePoolRefresh.
Gets the skipped_member_count of this InstancePoolRefresh.
Gets the system_tags of this InstancePoolRefresh.
[Required] Gets the target_instance_configuration_id of this InstancePoolRefresh.
Gets the time_completed of this InstancePoolRefresh.
[Required] Gets the time_created of this InstancePoolRefresh.
Gets the total_member_count of this InstancePoolRefresh.
Gets the warmup_seconds of this InstancePoolRefresh.
Methods:
__init__(**kwargs)Initializes a new InstancePoolRefresh object with values from keyword arguments.
- LIFECYCLE_STATE_ACCEPTED = 'ACCEPTED'¶
A constant which can be used with the lifecycle_state property of a InstancePoolRefresh. This constant has a value of “ACCEPTED”
- LIFECYCLE_STATE_CANCELED = 'CANCELED'¶
A constant which can be used with the lifecycle_state property of a InstancePoolRefresh. This constant has a value of “CANCELED”
- LIFECYCLE_STATE_CANCELING = 'CANCELING'¶
A constant which can be used with the lifecycle_state property of a InstancePoolRefresh. This constant has a value of “CANCELING”
- LIFECYCLE_STATE_FAILED = 'FAILED'¶
A constant which can be used with the lifecycle_state property of a InstancePoolRefresh. This constant has a value of “FAILED”
- LIFECYCLE_STATE_IN_PROGRESS = 'IN_PROGRESS'¶
A constant which can be used with the lifecycle_state property of a InstancePoolRefresh. This constant has a value of “IN_PROGRESS”
- LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'¶
A constant which can be used with the lifecycle_state property of a InstancePoolRefresh. This constant has a value of “SUCCEEDED”
- __init__(**kwargs)¶
Initializes a new InstancePoolRefresh object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
id (str) – The value to assign to the id property of this InstancePoolRefresh.
compartment_id (str) – The value to assign to the compartment_id property of this InstancePoolRefresh.
system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this InstancePoolRefresh.
instance_pool_id (str) – The value to assign to the instance_pool_id property of this InstancePoolRefresh.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this InstancePoolRefresh. Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “SUCCEEDED”, “FAILED”, “CANCELING”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
target_instance_configuration_id (str) – The value to assign to the target_instance_configuration_id property of this InstancePoolRefresh.
max_healthy_percent (int) – The value to assign to the max_healthy_percent property of this InstancePoolRefresh.
warmup_seconds (int) – The value to assign to the warmup_seconds property of this InstancePoolRefresh.
is_full_refresh (bool) – The value to assign to the is_full_refresh property of this InstancePoolRefresh.
refresh_batch_size (int) – The value to assign to the refresh_batch_size property of this InstancePoolRefresh.
total_member_count (int) – The value to assign to the total_member_count property of this InstancePoolRefresh.
remaining_member_count (int) – The value to assign to the remaining_member_count property of this InstancePoolRefresh.
percent_complete (int) – The value to assign to the percent_complete property of this InstancePoolRefresh.
skipped_member_count (int) – The value to assign to the skipped_member_count property of this InstancePoolRefresh.
time_created (datetime) – The value to assign to the time_created property of this InstancePoolRefresh.
time_completed (datetime) – The value to assign to the time_completed property of this InstancePoolRefresh.
- property compartment_id¶
[Required] Gets the compartment_id of this InstancePoolRefresh. The OCID of the compartment containing the instance pool.
- Returns
The compartment_id of this InstancePoolRefresh.
- Return type
str
- property id¶
[Required] Gets the id of this InstancePoolRefresh. The OCID of the instance pool refresh.
- Returns
The id of this InstancePoolRefresh.
- Return type
str
- property instance_pool_id¶
[Required] Gets the instance_pool_id of this InstancePoolRefresh. The OCID of the instance pool.
- Returns
The instance_pool_id of this InstancePoolRefresh.
- Return type
str
- property is_full_refresh¶
Gets the is_full_refresh of this InstancePoolRefresh. Whether the refresh can select instances that already match the target instance configuration.
- Returns
The is_full_refresh of this InstancePoolRefresh.
- Return type
bool
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this InstancePoolRefresh. The current state of the instance pool refresh.
Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “SUCCEEDED”, “FAILED”, “CANCELING”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this InstancePoolRefresh.
- Return type
str
- property max_healthy_percent¶
Gets the max_healthy_percent of this InstancePoolRefresh. The maximum healthy percentage requested for launch-before-terminate capacity.
- Returns
The max_healthy_percent of this InstancePoolRefresh.
- Return type
int
- property percent_complete¶
Gets the percent_complete of this InstancePoolRefresh. The percentage of the refresh that is complete.
- Returns
The percent_complete of this InstancePoolRefresh.
- Return type
int
- property refresh_batch_size¶
Gets the refresh_batch_size of this InstancePoolRefresh. The maximum number of instances refreshed in a batch.
- Returns
The refresh_batch_size of this InstancePoolRefresh.
- Return type
int
- property remaining_member_count¶
Gets the remaining_member_count of this InstancePoolRefresh. The number of instances remaining to be refreshed.
- Returns
The remaining_member_count of this InstancePoolRefresh.
- Return type
int
- property skipped_member_count¶
Gets the skipped_member_count of this InstancePoolRefresh. The number of instances skipped by the refresh.
- Returns
The skipped_member_count of this InstancePoolRefresh.
- Return type
int
- property system_tags¶
Gets the system_tags of this InstancePoolRefresh. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: { “orcl-cloud”: { “free-tier-retained”: “true” } }
- Returns
The system_tags of this InstancePoolRefresh.
- Return type
dict(str, dict(str, object))
- property target_instance_configuration_id¶
[Required] Gets the target_instance_configuration_id of this InstancePoolRefresh. The OCID of the instance configuration captured from the instance pool when the refresh started.
- Returns
The target_instance_configuration_id of this InstancePoolRefresh.
- Return type
str
- property time_completed¶
Gets the time_completed of this InstancePoolRefresh. The date and time the instance pool refresh reached a terminal state, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- Returns
The time_completed of this InstancePoolRefresh.
- Return type
datetime
- property time_created¶
[Required] Gets the time_created of this InstancePoolRefresh. The date and time the instance pool refresh was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- Returns
The time_created of this InstancePoolRefresh.
- Return type
datetime
- property total_member_count¶
Gets the total_member_count of this InstancePoolRefresh. The total number of instances selected for this refresh.
- Returns
The total_member_count of this InstancePoolRefresh.
- Return type
int
- property warmup_seconds¶
Gets the warmup_seconds of this InstancePoolRefresh. The requested warmup duration in seconds.
- Returns
The warmup_seconds of this InstancePoolRefresh.
- Return type
int