Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
apm_synthetics
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: scripted_rest_monitor_configuration.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: 20200630 from .monitor_configuration import MonitorConfiguration 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 ScriptedRestMonitorConfiguration(MonitorConfiguration): """ Configuration details for the SCRIPTED_REST monitor type. """ #: A constant which can be used with the req_authentication_scheme property of a ScriptedRestMonitorConfiguration. #: This constant has a value of "NONE" REQ_AUTHENTICATION_SCHEME_NONE = "NONE" #: A constant which can be used with the req_authentication_scheme property of a ScriptedRestMonitorConfiguration. #: This constant has a value of "RESOURCE_PRINCIPAL" REQ_AUTHENTICATION_SCHEME_RESOURCE_PRINCIPAL = "RESOURCE_PRINCIPAL" def __init__(self, **kwargs): """ Initializes a new ScriptedRestMonitorConfiguration object with values from keyword arguments. The default value of the :py:attr:`~oci.apm_synthetics.models.ScriptedRestMonitorConfiguration.config_type` attribute of this class is ``SCRIPTED_REST_CONFIG`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param config_type: The value to assign to the config_type property of this ScriptedRestMonitorConfiguration. Allowed values for this property are: "BROWSER_CONFIG", "SCRIPTED_BROWSER_CONFIG", "REST_CONFIG", "SCRIPTED_REST_CONFIG", "NETWORK_CONFIG", "DNS_SERVER_CONFIG", "DNS_TRACE_CONFIG", "DNSSEC_CONFIG", "FTP_CONFIG", "SQL_CONFIG", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type config_type: str :param is_failure_retried: The value to assign to the is_failure_retried property of this ScriptedRestMonitorConfiguration. :type is_failure_retried: bool :param dns_configuration: The value to assign to the dns_configuration property of this ScriptedRestMonitorConfiguration. :type dns_configuration: oci.apm_synthetics.models.DnsConfiguration :param req_authentication_scheme: The value to assign to the req_authentication_scheme property of this ScriptedRestMonitorConfiguration. Allowed values for this property are: "NONE", "RESOURCE_PRINCIPAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type req_authentication_scheme: str :param verify_response_codes: The value to assign to the verify_response_codes property of this ScriptedRestMonitorConfiguration. :type verify_response_codes: list[str] :param network_configuration: The value to assign to the network_configuration property of this ScriptedRestMonitorConfiguration. :type network_configuration: oci.apm_synthetics.models.NetworkConfiguration """ self.swagger_types = { 'config_type': 'str', 'is_failure_retried': 'bool', 'dns_configuration': 'DnsConfiguration', 'req_authentication_scheme': 'str', 'verify_response_codes': 'list[str]', 'network_configuration': 'NetworkConfiguration' } self.attribute_map = { 'config_type': 'configType', 'is_failure_retried': 'isFailureRetried', 'dns_configuration': 'dnsConfiguration', 'req_authentication_scheme': 'reqAuthenticationScheme', 'verify_response_codes': 'verifyResponseCodes', 'network_configuration': 'networkConfiguration' } self._config_type = None self._is_failure_retried = None self._dns_configuration = None self._req_authentication_scheme = None self._verify_response_codes = None self._network_configuration = None self._config_type = 'SCRIPTED_REST_CONFIG' @property def req_authentication_scheme(self): """ Gets the req_authentication_scheme of this ScriptedRestMonitorConfiguration. Request HTTP authentication scheme. Allowed values for this property are: "NONE", "RESOURCE_PRINCIPAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The req_authentication_scheme of this ScriptedRestMonitorConfiguration. :rtype: str """ return self._req_authentication_scheme @req_authentication_scheme.setter def req_authentication_scheme(self, req_authentication_scheme): """ Sets the req_authentication_scheme of this ScriptedRestMonitorConfiguration. Request HTTP authentication scheme. :param req_authentication_scheme: The req_authentication_scheme of this ScriptedRestMonitorConfiguration. :type: str """ allowed_values = ["NONE", "RESOURCE_PRINCIPAL"] if not value_allowed_none_or_none_sentinel(req_authentication_scheme, allowed_values): req_authentication_scheme = 'UNKNOWN_ENUM_VALUE' self._req_authentication_scheme = req_authentication_scheme @property def verify_response_codes(self): """ Gets the verify_response_codes of this ScriptedRestMonitorConfiguration. Expected HTTP response codes. For status code range, set values such as 2xx, 3xx. :return: The verify_response_codes of this ScriptedRestMonitorConfiguration. :rtype: list[str] """ return self._verify_response_codes @verify_response_codes.setter def verify_response_codes(self, verify_response_codes): """ Sets the verify_response_codes of this ScriptedRestMonitorConfiguration. Expected HTTP response codes. For status code range, set values such as 2xx, 3xx. :param verify_response_codes: The verify_response_codes of this ScriptedRestMonitorConfiguration. :type: list[str] """ self._verify_response_codes = verify_response_codes @property def network_configuration(self): """ Gets the network_configuration of this ScriptedRestMonitorConfiguration. :return: The network_configuration of this ScriptedRestMonitorConfiguration. :rtype: oci.apm_synthetics.models.NetworkConfiguration """ return self._network_configuration @network_configuration.setter def network_configuration(self, network_configuration): """ Sets the network_configuration of this ScriptedRestMonitorConfiguration. :param network_configuration: The network_configuration of this ScriptedRestMonitorConfiguration. :type: oci.apm_synthetics.models.NetworkConfiguration """ self._network_configuration = network_configuration 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