File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/database/models/execute_db_system_os_patch_details.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, 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 ExecuteDbSystemOsPatchDetails(object): """ Request details for submitting an operating system (OS) patch action on a DB system. Use PRECHECK to validate prerequisites and surface the expected changes without applying them. Use APPLY to install the selected updates. Some updates may require a reboot to take effect. """ #: A constant which can be used with the action property of a ExecuteDbSystemOsPatchDetails. #: This constant has a value of "PRECHECK" ACTION_PRECHECK = "PRECHECK" #: A constant which can be used with the action property of a ExecuteDbSystemOsPatchDetails. #: This constant has a value of "APPLY" ACTION_APPLY = "APPLY" def __init__(self, **kwargs): """ Initializes a new ExecuteDbSystemOsPatchDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param action: The value to assign to the action property of this ExecuteDbSystemOsPatchDetails. Allowed values for this property are: "PRECHECK", "APPLY" :type action: str :param db_node_id: The value to assign to the db_node_id property of this ExecuteDbSystemOsPatchDetails. :type db_node_id: str """ self.swagger_types = { 'action': 'str', 'db_node_id': 'str' } self.attribute_map = { 'action': 'action', 'db_node_id': 'dbNodeId' } self._action = None self._db_node_id = None @property def action(self): """ **[Required]** Gets the action of this ExecuteDbSystemOsPatchDetails. Operation system (OS) patch action to perform * PRECHECK: No changes applied; runs validation/dry run. * APPLY: Installs updates; may require a reboot (see OS patch history entry details to determine isRebootRequired). Allowed values for this property are: "PRECHECK", "APPLY" :return: The action of this ExecuteDbSystemOsPatchDetails. :rtype: str """ return self._action @action.setter def action(self, action): """ Sets the action of this ExecuteDbSystemOsPatchDetails. Operation system (OS) patch action to perform * PRECHECK: No changes applied; runs validation/dry run. * APPLY: Installs updates; may require a reboot (see OS patch history entry details to determine isRebootRequired). :param action: The action of this ExecuteDbSystemOsPatchDetails. :type: str """ allowed_values = ["PRECHECK", "APPLY"] if not value_allowed_none_or_none_sentinel(action, allowed_values): raise ValueError( f"Invalid value for `action`, must be None or one of {allowed_values}" ) self._action = action @property def db_node_id(self): """ Gets the db_node_id of this ExecuteDbSystemOsPatchDetails. The OCID of the DB node to target for this patch action. If omitted, the action applies to all nodes in the DB system. :return: The db_node_id of this ExecuteDbSystemOsPatchDetails. :rtype: str """ return self._db_node_id @db_node_id.setter def db_node_id(self, db_node_id): """ Sets the db_node_id of this ExecuteDbSystemOsPatchDetails. The OCID of the DB node to target for this patch action. If omitted, the action applies to all nodes in the DB system. :param db_node_id: The db_node_id of this ExecuteDbSystemOsPatchDetails. :type: str """ self._db_node_id = db_node_id 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
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings