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 UpdateExadataInfrastructureDetails(object): """ Updates the Exadata infrastructure. Applies to Exadata Cloud@Customer instances only. See :func:`update_cloud_exadata_infrastructure_details` for information on updating Exadata Cloud Service cloud Exadata infrastructure resources. """ #: A constant which can be used with the additional_compute_system_model property of a UpdateExadataInfrastructureDetails. #: This constant has a value of "X7" ADDITIONAL_COMPUTE_SYSTEM_MODEL_X7 = "X7" #: A constant which can be used with the additional_compute_system_model property of a UpdateExadataInfrastructureDetails. #: This constant has a value of "X8" ADDITIONAL_COMPUTE_SYSTEM_MODEL_X8 = "X8" #: A constant which can be used with the additional_compute_system_model property of a UpdateExadataInfrastructureDetails. #: This constant has a value of "X8M" ADDITIONAL_COMPUTE_SYSTEM_MODEL_X8_M = "X8M" #: A constant which can be used with the additional_compute_system_model property of a UpdateExadataInfrastructureDetails. #: This constant has a value of "X9M" ADDITIONAL_COMPUTE_SYSTEM_MODEL_X9_M = "X9M" #: A constant which can be used with the additional_compute_system_model property of a UpdateExadataInfrastructureDetails. #: This constant has a value of "X10M" ADDITIONAL_COMPUTE_SYSTEM_MODEL_X10_M = "X10M" def __init__(self, **kwargs): """ Initializes a new UpdateExadataInfrastructureDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param cloud_control_plane_server1: The value to assign to the cloud_control_plane_server1 property of this UpdateExadataInfrastructureDetails. :type cloud_control_plane_server1: str :param cloud_control_plane_server2: The value to assign to the cloud_control_plane_server2 property of this UpdateExadataInfrastructureDetails. :type cloud_control_plane_server2: str :param netmask: The value to assign to the netmask property of this UpdateExadataInfrastructureDetails. :type netmask: str :param gateway: The value to assign to the gateway property of this UpdateExadataInfrastructureDetails. :type gateway: str :param admin_network_cidr: The value to assign to the admin_network_cidr property of this UpdateExadataInfrastructureDetails. :type admin_network_cidr: str :param infini_band_network_cidr: The value to assign to the infini_band_network_cidr property of this UpdateExadataInfrastructureDetails. :type infini_band_network_cidr: str :param corporate_proxy: The value to assign to the corporate_proxy property of this UpdateExadataInfrastructureDetails. :type corporate_proxy: str :param contacts: The value to assign to the contacts property of this UpdateExadataInfrastructureDetails. :type contacts: list[oci.database.models.ExadataInfrastructureContact] :param maintenance_window: The value to assign to the maintenance_window property of this UpdateExadataInfrastructureDetails. :type maintenance_window: oci.database.models.MaintenanceWindow :param additional_storage_count: The value to assign to the additional_storage_count property of this UpdateExadataInfrastructureDetails. :type additional_storage_count: int :param is_multi_rack_deployment: The value to assign to the is_multi_rack_deployment property of this UpdateExadataInfrastructureDetails. :type is_multi_rack_deployment: bool :param multi_rack_configuration_file: The value to assign to the multi_rack_configuration_file property of this UpdateExadataInfrastructureDetails. :type multi_rack_configuration_file: str :param additional_compute_count: The value to assign to the additional_compute_count property of this UpdateExadataInfrastructureDetails. :type additional_compute_count: int :param additional_compute_system_model: The value to assign to the additional_compute_system_model property of this UpdateExadataInfrastructureDetails. Allowed values for this property are: "X7", "X8", "X8M", "X9M", "X10M" :type additional_compute_system_model: str :param dns_server: The value to assign to the dns_server property of this UpdateExadataInfrastructureDetails. :type dns_server: list[str] :param ntp_server: The value to assign to the ntp_server property of this UpdateExadataInfrastructureDetails. :type ntp_server: list[str] :param time_zone: The value to assign to the time_zone property of this UpdateExadataInfrastructureDetails. :type time_zone: str :param is_cps_offline_report_enabled: The value to assign to the is_cps_offline_report_enabled property of this UpdateExadataInfrastructureDetails. :type is_cps_offline_report_enabled: bool :param network_bonding_mode_details: The value to assign to the network_bonding_mode_details property of this UpdateExadataInfrastructureDetails. :type network_bonding_mode_details: oci.database.models.NetworkBondingModeDetails :param freeform_tags: The value to assign to the freeform_tags property of this UpdateExadataInfrastructureDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this UpdateExadataInfrastructureDetails. :type defined_tags: dict(str, dict(str, object)) """ self.swagger_types = { 'cloud_control_plane_server1': 'str', 'cloud_control_plane_server2': 'str', 'netmask': 'str', 'gateway': 'str', 'admin_network_cidr': 'str', 'infini_band_network_cidr': 'str', 'corporate_proxy': 'str', 'contacts': 'list[ExadataInfrastructureContact]', 'maintenance_window': 'MaintenanceWindow', 'additional_storage_count': 'int', 'is_multi_rack_deployment': 'bool', 'multi_rack_configuration_file': 'str', 'additional_compute_count': 'int', 'additional_compute_system_model': 'str', 'dns_server': 'list[str]', 'ntp_server': 'list[str]', 'time_zone': 'str', 'is_cps_offline_report_enabled': 'bool', 'network_bonding_mode_details': 'NetworkBondingModeDetails', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))' } self.attribute_map = { 'cloud_control_plane_server1': 'cloudControlPlaneServer1', 'cloud_control_plane_server2': 'cloudControlPlaneServer2', 'netmask': 'netmask', 'gateway': 'gateway', 'admin_network_cidr': 'adminNetworkCIDR', 'infini_band_network_cidr': 'infiniBandNetworkCIDR', 'corporate_proxy': 'corporateProxy', 'contacts': 'contacts', 'maintenance_window': 'maintenanceWindow', 'additional_storage_count': 'additionalStorageCount', 'is_multi_rack_deployment': 'isMultiRackDeployment', 'multi_rack_configuration_file': 'multiRackConfigurationFile', 'additional_compute_count': 'additionalComputeCount', 'additional_compute_system_model': 'additionalComputeSystemModel', 'dns_server': 'dnsServer', 'ntp_server': 'ntpServer', 'time_zone': 'timeZone', 'is_cps_offline_report_enabled': 'isCpsOfflineReportEnabled', 'network_bonding_mode_details': 'networkBondingModeDetails', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags' } self._cloud_control_plane_server1 = None self._cloud_control_plane_server2 = None self._netmask = None self._gateway = None self._admin_network_cidr = None self._infini_band_network_cidr = None self._corporate_proxy = None self._contacts = None self._maintenance_window = None self._additional_storage_count = None self._is_multi_rack_deployment = None self._multi_rack_configuration_file = None self._additional_compute_count = None self._additional_compute_system_model = None self._dns_server = None self._ntp_server = None self._time_zone = None self._is_cps_offline_report_enabled = None self._network_bonding_mode_details = None self._freeform_tags = None self._defined_tags = None @property def cloud_control_plane_server1(self): """ Gets the cloud_control_plane_server1 of this UpdateExadataInfrastructureDetails. The IP address for the first control plane server. :return: The cloud_control_plane_server1 of this UpdateExadataInfrastructureDetails. :rtype: str """ return self._cloud_control_plane_server1 @cloud_control_plane_server1.setter def cloud_control_plane_server1(self, cloud_control_plane_server1): """ Sets the cloud_control_plane_server1 of this UpdateExadataInfrastructureDetails. The IP address for the first control plane server. :param cloud_control_plane_server1: The cloud_control_plane_server1 of this UpdateExadataInfrastructureDetails. :type: str """ self._cloud_control_plane_server1 = cloud_control_plane_server1 @property def cloud_control_plane_server2(self): """ Gets the cloud_control_plane_server2 of this UpdateExadataInfrastructureDetails. The IP address for the second control plane server. :return: The cloud_control_plane_server2 of this UpdateExadataInfrastructureDetails. :rtype: str """ return self._cloud_control_plane_server2 @cloud_control_plane_server2.setter def cloud_control_plane_server2(self, cloud_control_plane_server2): """ Sets the cloud_control_plane_server2 of this UpdateExadataInfrastructureDetails. The IP address for the second control plane server. :param cloud_control_plane_server2: The cloud_control_plane_server2 of this UpdateExadataInfrastructureDetails. :type: str """ self._cloud_control_plane_server2 = cloud_control_plane_server2 @property def netmask(self): """ Gets the netmask of this UpdateExadataInfrastructureDetails. The netmask for the control plane network. :return: The netmask of this UpdateExadataInfrastructureDetails. :rtype: str """ return self._netmask @netmask.setter def netmask(self, netmask): """ Sets the netmask of this UpdateExadataInfrastructureDetails. The netmask for the control plane network. :param netmask: The netmask of this UpdateExadataInfrastructureDetails. :type: str """ self._netmask = netmask @property def gateway(self): """ Gets the gateway of this UpdateExadataInfrastructureDetails. The gateway for the control plane network. :return: The gateway of this UpdateExadataInfrastructureDetails. :rtype: str """ return self._gateway @gateway.setter def gateway(self, gateway): """ Sets the gateway of this UpdateExadataInfrastructureDetails. The gateway for the control plane network. :param gateway: The gateway of this UpdateExadataInfrastructureDetails. :type: str """ self._gateway = gateway @property def admin_network_cidr(self): """ Gets the admin_network_cidr of this UpdateExadataInfrastructureDetails. The CIDR block for the Exadata administration network. :return: The admin_network_cidr of this UpdateExadataInfrastructureDetails. :rtype: str """ return self._admin_network_cidr @admin_network_cidr.setter def admin_network_cidr(self, admin_network_cidr): """ Sets the admin_network_cidr of this UpdateExadataInfrastructureDetails. The CIDR block for the Exadata administration network. :param admin_network_cidr: The admin_network_cidr of this UpdateExadataInfrastructureDetails. :type: str """ self._admin_network_cidr = admin_network_cidr @property def infini_band_network_cidr(self): """ Gets the infini_band_network_cidr of this UpdateExadataInfrastructureDetails. The CIDR block for the Exadata InfiniBand interconnect. :return: The infini_band_network_cidr of this UpdateExadataInfrastructureDetails. :rtype: str """ return self._infini_band_network_cidr @infini_band_network_cidr.setter def infini_band_network_cidr(self, infini_band_network_cidr): """ Sets the infini_band_network_cidr of this UpdateExadataInfrastructureDetails. The CIDR block for the Exadata InfiniBand interconnect. :param infini_band_network_cidr: The infini_band_network_cidr of this UpdateExadataInfrastructureDetails. :type: str """ self._infini_band_network_cidr = infini_band_network_cidr @property def corporate_proxy(self): """ Gets the corporate_proxy of this UpdateExadataInfrastructureDetails. The corporate network proxy for access to the control plane network. :return: The corporate_proxy of this UpdateExadataInfrastructureDetails. :rtype: str """ return self._corporate_proxy @corporate_proxy.setter def corporate_proxy(self, corporate_proxy): """ Sets the corporate_proxy of this UpdateExadataInfrastructureDetails. The corporate network proxy for access to the control plane network. :param corporate_proxy: The corporate_proxy of this UpdateExadataInfrastructureDetails. :type: str """ self._corporate_proxy = corporate_proxy @property def contacts(self): """ Gets the contacts of this UpdateExadataInfrastructureDetails. The list of contacts for the Exadata infrastructure. :return: The contacts of this UpdateExadataInfrastructureDetails. :rtype: list[oci.database.models.ExadataInfrastructureContact] """ return self._contacts @contacts.setter def contacts(self, contacts): """ Sets the contacts of this UpdateExadataInfrastructureDetails. The list of contacts for the Exadata infrastructure. :param contacts: The contacts of this UpdateExadataInfrastructureDetails. :type: list[oci.database.models.ExadataInfrastructureContact] """ self._contacts = contacts @property def maintenance_window(self): """ Gets the maintenance_window of this UpdateExadataInfrastructureDetails. :return: The maintenance_window of this UpdateExadataInfrastructureDetails. :rtype: oci.database.models.MaintenanceWindow """ return self._maintenance_window @maintenance_window.setter def maintenance_window(self, maintenance_window): """ Sets the maintenance_window of this UpdateExadataInfrastructureDetails. :param maintenance_window: The maintenance_window of this UpdateExadataInfrastructureDetails. :type: oci.database.models.MaintenanceWindow """ self._maintenance_window = maintenance_window @property def additional_storage_count(self): """ Gets the additional_storage_count of this UpdateExadataInfrastructureDetails. The requested number of additional storage servers for the Exadata infrastructure. :return: The additional_storage_count of this UpdateExadataInfrastructureDetails. :rtype: int """ return self._additional_storage_count @additional_storage_count.setter def additional_storage_count(self, additional_storage_count): """ Sets the additional_storage_count of this UpdateExadataInfrastructureDetails. The requested number of additional storage servers for the Exadata infrastructure. :param additional_storage_count: The additional_storage_count of this UpdateExadataInfrastructureDetails. :type: int """ self._additional_storage_count = additional_storage_count @property def is_multi_rack_deployment(self): """ Gets the is_multi_rack_deployment of this UpdateExadataInfrastructureDetails. Indicates if deployment is Multi-Rack or not. :return: The is_multi_rack_deployment of this UpdateExadataInfrastructureDetails. :rtype: bool """ return self._is_multi_rack_deployment @is_multi_rack_deployment.setter def is_multi_rack_deployment(self, is_multi_rack_deployment): """ Sets the is_multi_rack_deployment of this UpdateExadataInfrastructureDetails. Indicates if deployment is Multi-Rack or not. :param is_multi_rack_deployment: The is_multi_rack_deployment of this UpdateExadataInfrastructureDetails. :type: bool """ self._is_multi_rack_deployment = is_multi_rack_deployment @property def multi_rack_configuration_file(self): """ Gets the multi_rack_configuration_file of this UpdateExadataInfrastructureDetails. The base64 encoded Multi-Rack configuration json file. :return: The multi_rack_configuration_file of this UpdateExadataInfrastructureDetails. :rtype: str """ return self._multi_rack_configuration_file @multi_rack_configuration_file.setter def multi_rack_configuration_file(self, multi_rack_configuration_file): """ Sets the multi_rack_configuration_file of this UpdateExadataInfrastructureDetails. The base64 encoded Multi-Rack configuration json file. :param multi_rack_configuration_file: The multi_rack_configuration_file of this UpdateExadataInfrastructureDetails. :type: str """ self._multi_rack_configuration_file = multi_rack_configuration_file @property def additional_compute_count(self): """ Gets the additional_compute_count of this UpdateExadataInfrastructureDetails. The requested number of additional compute servers for the Exadata infrastructure. :return: The additional_compute_count of this UpdateExadataInfrastructureDetails. :rtype: int """ return self._additional_compute_count @additional_compute_count.setter def additional_compute_count(self, additional_compute_count): """ Sets the additional_compute_count of this UpdateExadataInfrastructureDetails. The requested number of additional compute servers for the Exadata infrastructure. :param additional_compute_count: The additional_compute_count of this UpdateExadataInfrastructureDetails. :type: int """ self._additional_compute_count = additional_compute_count @property def additional_compute_system_model(self): """ Gets the additional_compute_system_model of this UpdateExadataInfrastructureDetails. Oracle Exadata System Model specification. The system model determines the amount of compute or storage server resources available for use. For more information, please see [System and Shape Configuration Options] (https://docs.oracle.com/en/engineered-systems/exadata-cloud-at-customer/ecccm/ecc-system-config-options.html#GUID-9E090174-5C57-4EB1-9243-B470F9F10D6B) Allowed values for this property are: "X7", "X8", "X8M", "X9M", "X10M" :return: The additional_compute_system_model of this UpdateExadataInfrastructureDetails. :rtype: str """ return self._additional_compute_system_model @additional_compute_system_model.setter def additional_compute_system_model(self, additional_compute_system_model): """ Sets the additional_compute_system_model of this UpdateExadataInfrastructureDetails. Oracle Exadata System Model specification. The system model determines the amount of compute or storage server resources available for use. For more information, please see [System and Shape Configuration Options] (https://docs.oracle.com/en/engineered-systems/exadata-cloud-at-customer/ecccm/ecc-system-config-options.html#GUID-9E090174-5C57-4EB1-9243-B470F9F10D6B) :param additional_compute_system_model: The additional_compute_system_model of this UpdateExadataInfrastructureDetails. :type: str """ allowed_values = ["X7", "X8", "X8M", "X9M", "X10M"] if not value_allowed_none_or_none_sentinel(additional_compute_system_model, allowed_values): raise ValueError( f"Invalid value for `additional_compute_system_model`, must be None or one of {allowed_values}" ) self._additional_compute_system_model = additional_compute_system_model @property def dns_server(self): """ Gets the dns_server of this UpdateExadataInfrastructureDetails. The list of DNS server IP addresses. Maximum of 3 allowed. :return: The dns_server of this UpdateExadataInfrastructureDetails. :rtype: list[str] """ return self._dns_server @dns_server.setter def dns_server(self, dns_server): """ Sets the dns_server of this UpdateExadataInfrastructureDetails. The list of DNS server IP addresses. Maximum of 3 allowed. :param dns_server: The dns_server of this UpdateExadataInfrastructureDetails. :type: list[str] """ self._dns_server = dns_server @property def ntp_server(self): """ Gets the ntp_server of this UpdateExadataInfrastructureDetails. The list of NTP server IP addresses. Maximum of 3 allowed. :return: The ntp_server of this UpdateExadataInfrastructureDetails. :rtype: list[str] """ return self._ntp_server @ntp_server.setter def ntp_server(self, ntp_server): """ Sets the ntp_server of this UpdateExadataInfrastructureDetails. The list of NTP server IP addresses. Maximum of 3 allowed. :param ntp_server: The ntp_server of this UpdateExadataInfrastructureDetails. :type: list[str] """ self._ntp_server = ntp_server @property def time_zone(self): """ Gets the time_zone of this UpdateExadataInfrastructureDetails. The time zone of the Exadata infrastructure. For details, see `Exadata Infrastructure Time Zones`__. __ https://docs.cloud.oracle.com/Content/Database/References/timezones.htm :return: The time_zone of this UpdateExadataInfrastructureDetails. :rtype: str """ return self._time_zone @time_zone.setter def time_zone(self, time_zone): """ Sets the time_zone of this UpdateExadataInfrastructureDetails. The time zone of the Exadata infrastructure. For details, see `Exadata Infrastructure Time Zones`__. __ https://docs.cloud.oracle.com/Content/Database/References/timezones.htm :param time_zone: The time_zone of this UpdateExadataInfrastructureDetails. :type: str """ self._time_zone = time_zone @property def is_cps_offline_report_enabled(self): """ Gets the is_cps_offline_report_enabled of this UpdateExadataInfrastructureDetails. Indicates whether cps offline diagnostic report is enabled for this Exadata infrastructure. This will allow a customer to quickly check status themselves and fix problems on their end, saving time and frustration for both Oracle and the customer when they find the CPS in a disconnected state.You can enable offline diagnostic report during Exadata infrastructure provisioning. You can also disable or enable it at any time using the UpdateExadatainfrastructure API. :return: The is_cps_offline_report_enabled of this UpdateExadataInfrastructureDetails. :rtype: bool """ return self._is_cps_offline_report_enabled @is_cps_offline_report_enabled.setter def is_cps_offline_report_enabled(self, is_cps_offline_report_enabled): """ Sets the is_cps_offline_report_enabled of this UpdateExadataInfrastructureDetails. Indicates whether cps offline diagnostic report is enabled for this Exadata infrastructure. This will allow a customer to quickly check status themselves and fix problems on their end, saving time and frustration for both Oracle and the customer when they find the CPS in a disconnected state.You can enable offline diagnostic report during Exadata infrastructure provisioning. You can also disable or enable it at any time using the UpdateExadatainfrastructure API. :param is_cps_offline_report_enabled: The is_cps_offline_report_enabled of this UpdateExadataInfrastructureDetails. :type: bool """ self._is_cps_offline_report_enabled = is_cps_offline_report_enabled @property def network_bonding_mode_details(self): """ Gets the network_bonding_mode_details of this UpdateExadataInfrastructureDetails. :return: The network_bonding_mode_details of this UpdateExadataInfrastructureDetails. :rtype: oci.database.models.NetworkBondingModeDetails """ return self._network_bonding_mode_details @network_bonding_mode_details.setter def network_bonding_mode_details(self, network_bonding_mode_details): """ Sets the network_bonding_mode_details of this UpdateExadataInfrastructureDetails. :param network_bonding_mode_details: The network_bonding_mode_details of this UpdateExadataInfrastructureDetails. :type: oci.database.models.NetworkBondingModeDetails """ self._network_bonding_mode_details = network_bonding_mode_details @property def freeform_tags(self): """ Gets the freeform_tags of this UpdateExadataInfrastructureDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__. Example: `{\"Department\": \"Finance\"}` __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :return: The freeform_tags of this UpdateExadataInfrastructureDetails. :rtype: dict(str, str) """ return self._freeform_tags @freeform_tags.setter def freeform_tags(self, freeform_tags): """ Sets the freeform_tags of this UpdateExadataInfrastructureDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__. Example: `{\"Department\": \"Finance\"}` __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :param freeform_tags: The freeform_tags of this UpdateExadataInfrastructureDetails. :type: dict(str, str) """ self._freeform_tags = freeform_tags @property def defined_tags(self): """ Gets the defined_tags of this UpdateExadataInfrastructureDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :return: The defined_tags of this UpdateExadataInfrastructureDetails. :rtype: dict(str, dict(str, object)) """ return self._defined_tags @defined_tags.setter def defined_tags(self, defined_tags): """ Sets the defined_tags of this UpdateExadataInfrastructureDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :param defined_tags: The defined_tags of this UpdateExadataInfrastructureDetails. :type: dict(str, dict(str, object)) """ self._defined_tags = defined_tags 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