ruạṛ
# coding: utf-8 # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class DetachInstancePoolInstanceDetails(object): """ An instance that is to be detached from an instance pool. """ def __init__(self, **kwargs): """ Initializes a new DetachInstancePoolInstanceDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param instance_id: The value to assign to the instance_id property of this DetachInstancePoolInstanceDetails. :type instance_id: str :param is_decrement_size: The value to assign to the is_decrement_size property of this DetachInstancePoolInstanceDetails. :type is_decrement_size: bool :param is_auto_terminate: The value to assign to the is_auto_terminate property of this DetachInstancePoolInstanceDetails. :type is_auto_terminate: bool """ self.swagger_types = { 'instance_id': 'str', 'is_decrement_size': 'bool', 'is_auto_terminate': 'bool' } self.attribute_map = { 'instance_id': 'instanceId', 'is_decrement_size': 'isDecrementSize', 'is_auto_terminate': 'isAutoTerminate' } self._instance_id = None self._is_decrement_size = None self._is_auto_terminate = None @property def instance_id(self): """ **[Required]** Gets the instance_id of this DetachInstancePoolInstanceDetails. The `OCID`__ of the instance. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The instance_id of this DetachInstancePoolInstanceDetails. :rtype: str """ return self._instance_id @instance_id.setter def instance_id(self, instance_id): """ Sets the instance_id of this DetachInstancePoolInstanceDetails. The `OCID`__ of the instance. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param instance_id: The instance_id of this DetachInstancePoolInstanceDetails. :type: str """ self._instance_id = instance_id @property def is_decrement_size(self): """ Gets the is_decrement_size of this DetachInstancePoolInstanceDetails. Whether to decrease the size of the instance pool when the instance is detached. If `true`, the pool size is decreased. If `false`, the pool will provision a new, replacement instance using the pool's instance configuration as a template. Default is `true`. :return: The is_decrement_size of this DetachInstancePoolInstanceDetails. :rtype: bool """ return self._is_decrement_size @is_decrement_size.setter def is_decrement_size(self, is_decrement_size): """ Sets the is_decrement_size of this DetachInstancePoolInstanceDetails. Whether to decrease the size of the instance pool when the instance is detached. If `true`, the pool size is decreased. If `false`, the pool will provision a new, replacement instance using the pool's instance configuration as a template. Default is `true`. :param is_decrement_size: The is_decrement_size of this DetachInstancePoolInstanceDetails. :type: bool """ self._is_decrement_size = is_decrement_size @property def is_auto_terminate(self): """ Gets the is_auto_terminate of this DetachInstancePoolInstanceDetails. Whether to permanently terminate (delete) the instance and its attached boot volume when detaching it from the instance pool. Default is `false`. :return: The is_auto_terminate of this DetachInstancePoolInstanceDetails. :rtype: bool """ return self._is_auto_terminate @is_auto_terminate.setter def is_auto_terminate(self, is_auto_terminate): """ Sets the is_auto_terminate of this DetachInstancePoolInstanceDetails. Whether to permanently terminate (delete) the instance and its attached boot volume when detaching it from the instance pool. Default is `false`. :param is_auto_terminate: The is_auto_terminate of this DetachInstancePoolInstanceDetails. :type: bool """ self._is_auto_terminate = is_auto_terminate def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
cải xoăn