Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
fleet_software_update
models
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: service_availability_factor_batching_strategy_details.py
# 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: 20220528 from .batching_strategy_details import BatchingStrategyDetails 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 ServiceAvailabilityFactorBatchingStrategyDetails(BatchingStrategyDetails): """ Service Availability Factor batching strategy details to use during PRECHECK and APPLY Cycle Actions. """ def __init__(self, **kwargs): """ Initializes a new ServiceAvailabilityFactorBatchingStrategyDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.fleet_software_update.models.ServiceAvailabilityFactorBatchingStrategyDetails.type` attribute of this class is ``SERVICE_AVAILABILITY_FACTOR`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this ServiceAvailabilityFactorBatchingStrategyDetails. Allowed values for this property are: "SEQUENTIAL", "FIFTY_FIFTY", "SERVICE_AVAILABILITY_FACTOR", "NON_ROLLING" :type type: str :param percentage: The value to assign to the percentage property of this ServiceAvailabilityFactorBatchingStrategyDetails. :type percentage: int :param is_force_rolling: The value to assign to the is_force_rolling property of this ServiceAvailabilityFactorBatchingStrategyDetails. :type is_force_rolling: bool """ self.swagger_types = { 'type': 'str', 'percentage': 'int', 'is_force_rolling': 'bool' } self.attribute_map = { 'type': 'type', 'percentage': 'percentage', 'is_force_rolling': 'isForceRolling' } self._type = None self._percentage = None self._is_force_rolling = None self._type = 'SERVICE_AVAILABILITY_FACTOR' @property def percentage(self): """ Gets the percentage of this ServiceAvailabilityFactorBatchingStrategyDetails. Percentage of availability in the service during the Patch operation. :return: The percentage of this ServiceAvailabilityFactorBatchingStrategyDetails. :rtype: int """ return self._percentage @percentage.setter def percentage(self, percentage): """ Sets the percentage of this ServiceAvailabilityFactorBatchingStrategyDetails. Percentage of availability in the service during the Patch operation. :param percentage: The percentage of this ServiceAvailabilityFactorBatchingStrategyDetails. :type: int """ self._percentage = percentage @property def is_force_rolling(self): """ Gets the is_force_rolling of this ServiceAvailabilityFactorBatchingStrategyDetails. True to force rolling patching. :return: The is_force_rolling of this ServiceAvailabilityFactorBatchingStrategyDetails. :rtype: bool """ return self._is_force_rolling @is_force_rolling.setter def is_force_rolling(self, is_force_rolling): """ Sets the is_force_rolling of this ServiceAvailabilityFactorBatchingStrategyDetails. True to force rolling patching. :param is_force_rolling: The is_force_rolling of this ServiceAvailabilityFactorBatchingStrategyDetails. :type: bool """ self._is_force_rolling = is_force_rolling 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