| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.9/site-packages/oci/stack_monitoring/models/ |
Upload File : |
# 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: 20210330
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 CreateMonitoredResourceDetails(object):
"""
The information about new monitored resource to be created.
The combination of monitored resource name and type should be unique across tenancy.
"""
#: A constant which can be used with the license property of a CreateMonitoredResourceDetails.
#: This constant has a value of "STANDARD_EDITION"
LICENSE_STANDARD_EDITION = "STANDARD_EDITION"
#: A constant which can be used with the license property of a CreateMonitoredResourceDetails.
#: This constant has a value of "ENTERPRISE_EDITION"
LICENSE_ENTERPRISE_EDITION = "ENTERPRISE_EDITION"
def __init__(self, **kwargs):
"""
Initializes a new CreateMonitoredResourceDetails object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param name:
The value to assign to the name property of this CreateMonitoredResourceDetails.
:type name: str
:param display_name:
The value to assign to the display_name property of this CreateMonitoredResourceDetails.
:type display_name: str
:param type:
The value to assign to the type property of this CreateMonitoredResourceDetails.
:type type: str
:param compartment_id:
The value to assign to the compartment_id property of this CreateMonitoredResourceDetails.
:type compartment_id: str
:param host_name:
The value to assign to the host_name property of this CreateMonitoredResourceDetails.
:type host_name: str
:param external_id:
The value to assign to the external_id property of this CreateMonitoredResourceDetails.
:type external_id: str
:param management_agent_id:
The value to assign to the management_agent_id property of this CreateMonitoredResourceDetails.
:type management_agent_id: str
:param resource_time_zone:
The value to assign to the resource_time_zone property of this CreateMonitoredResourceDetails.
:type resource_time_zone: str
:param license:
The value to assign to the license property of this CreateMonitoredResourceDetails.
Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION"
:type license: str
:param properties:
The value to assign to the properties property of this CreateMonitoredResourceDetails.
:type properties: list[oci.stack_monitoring.models.MonitoredResourceProperty]
:param database_connection_details:
The value to assign to the database_connection_details property of this CreateMonitoredResourceDetails.
:type database_connection_details: oci.stack_monitoring.models.ConnectionDetails
:param credentials:
The value to assign to the credentials property of this CreateMonitoredResourceDetails.
:type credentials: oci.stack_monitoring.models.MonitoredResourceCredential
:param aliases:
The value to assign to the aliases property of this CreateMonitoredResourceDetails.
:type aliases: oci.stack_monitoring.models.MonitoredResourceAliasCredential
:param additional_credentials:
The value to assign to the additional_credentials property of this CreateMonitoredResourceDetails.
:type additional_credentials: list[oci.stack_monitoring.models.MonitoredResourceCredential]
:param additional_aliases:
The value to assign to the additional_aliases property of this CreateMonitoredResourceDetails.
:type additional_aliases: list[oci.stack_monitoring.models.MonitoredResourceAliasCredential]
:param freeform_tags:
The value to assign to the freeform_tags property of this CreateMonitoredResourceDetails.
:type freeform_tags: dict(str, str)
:param defined_tags:
The value to assign to the defined_tags property of this CreateMonitoredResourceDetails.
:type defined_tags: dict(str, dict(str, object))
"""
self.swagger_types = {
'name': 'str',
'display_name': 'str',
'type': 'str',
'compartment_id': 'str',
'host_name': 'str',
'external_id': 'str',
'management_agent_id': 'str',
'resource_time_zone': 'str',
'license': 'str',
'properties': 'list[MonitoredResourceProperty]',
'database_connection_details': 'ConnectionDetails',
'credentials': 'MonitoredResourceCredential',
'aliases': 'MonitoredResourceAliasCredential',
'additional_credentials': 'list[MonitoredResourceCredential]',
'additional_aliases': 'list[MonitoredResourceAliasCredential]',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))'
}
self.attribute_map = {
'name': 'name',
'display_name': 'displayName',
'type': 'type',
'compartment_id': 'compartmentId',
'host_name': 'hostName',
'external_id': 'externalId',
'management_agent_id': 'managementAgentId',
'resource_time_zone': 'resourceTimeZone',
'license': 'license',
'properties': 'properties',
'database_connection_details': 'databaseConnectionDetails',
'credentials': 'credentials',
'aliases': 'aliases',
'additional_credentials': 'additionalCredentials',
'additional_aliases': 'additionalAliases',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags'
}
self._name = None
self._display_name = None
self._type = None
self._compartment_id = None
self._host_name = None
self._external_id = None
self._management_agent_id = None
self._resource_time_zone = None
self._license = None
self._properties = None
self._database_connection_details = None
self._credentials = None
self._aliases = None
self._additional_credentials = None
self._additional_aliases = None
self._freeform_tags = None
self._defined_tags = None
@property
def name(self):
"""
**[Required]** Gets the name of this CreateMonitoredResourceDetails.
Monitored Resource Name.
:return: The name of this CreateMonitoredResourceDetails.
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""
Sets the name of this CreateMonitoredResourceDetails.
Monitored Resource Name.
:param name: The name of this CreateMonitoredResourceDetails.
:type: str
"""
self._name = name
@property
def display_name(self):
"""
Gets the display_name of this CreateMonitoredResourceDetails.
Monitored resource display name.
:return: The display_name of this CreateMonitoredResourceDetails.
:rtype: str
"""
return self._display_name
@display_name.setter
def display_name(self, display_name):
"""
Sets the display_name of this CreateMonitoredResourceDetails.
Monitored resource display name.
:param display_name: The display_name of this CreateMonitoredResourceDetails.
:type: str
"""
self._display_name = display_name
@property
def type(self):
"""
**[Required]** Gets the type of this CreateMonitoredResourceDetails.
Monitored Resource Type.
:return: The type of this CreateMonitoredResourceDetails.
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
"""
Sets the type of this CreateMonitoredResourceDetails.
Monitored Resource Type.
:param type: The type of this CreateMonitoredResourceDetails.
:type: str
"""
self._type = type
@property
def compartment_id(self):
"""
**[Required]** Gets the compartment_id of this CreateMonitoredResourceDetails.
Compartment Identifier `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The compartment_id of this CreateMonitoredResourceDetails.
:rtype: str
"""
return self._compartment_id
@compartment_id.setter
def compartment_id(self, compartment_id):
"""
Sets the compartment_id of this CreateMonitoredResourceDetails.
Compartment Identifier `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param compartment_id: The compartment_id of this CreateMonitoredResourceDetails.
:type: str
"""
self._compartment_id = compartment_id
@property
def host_name(self):
"""
Gets the host_name of this CreateMonitoredResourceDetails.
Host name of the monitored resource.
:return: The host_name of this CreateMonitoredResourceDetails.
:rtype: str
"""
return self._host_name
@host_name.setter
def host_name(self, host_name):
"""
Sets the host_name of this CreateMonitoredResourceDetails.
Host name of the monitored resource.
:param host_name: The host_name of this CreateMonitoredResourceDetails.
:type: str
"""
self._host_name = host_name
@property
def external_id(self):
"""
Gets the external_id of this CreateMonitoredResourceDetails.
External resource is any OCI resource identifier `OCID`__
which is not a Stack Monitoring service resource.
Currently supports only OCI compute instance.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The external_id of this CreateMonitoredResourceDetails.
:rtype: str
"""
return self._external_id
@external_id.setter
def external_id(self, external_id):
"""
Sets the external_id of this CreateMonitoredResourceDetails.
External resource is any OCI resource identifier `OCID`__
which is not a Stack Monitoring service resource.
Currently supports only OCI compute instance.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param external_id: The external_id of this CreateMonitoredResourceDetails.
:type: str
"""
self._external_id = external_id
@property
def management_agent_id(self):
"""
Gets the management_agent_id of this CreateMonitoredResourceDetails.
Management Agent Identifier `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The management_agent_id of this CreateMonitoredResourceDetails.
:rtype: str
"""
return self._management_agent_id
@management_agent_id.setter
def management_agent_id(self, management_agent_id):
"""
Sets the management_agent_id of this CreateMonitoredResourceDetails.
Management Agent Identifier `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param management_agent_id: The management_agent_id of this CreateMonitoredResourceDetails.
:type: str
"""
self._management_agent_id = management_agent_id
@property
def resource_time_zone(self):
"""
Gets the resource_time_zone of this CreateMonitoredResourceDetails.
Time zone in the form of tz database canonical zone ID. Specifies the preference with
a value that uses the IANA Time Zone Database format (x-obmcs-time-zone).
For example - America/Los_Angeles
:return: The resource_time_zone of this CreateMonitoredResourceDetails.
:rtype: str
"""
return self._resource_time_zone
@resource_time_zone.setter
def resource_time_zone(self, resource_time_zone):
"""
Sets the resource_time_zone of this CreateMonitoredResourceDetails.
Time zone in the form of tz database canonical zone ID. Specifies the preference with
a value that uses the IANA Time Zone Database format (x-obmcs-time-zone).
For example - America/Los_Angeles
:param resource_time_zone: The resource_time_zone of this CreateMonitoredResourceDetails.
:type: str
"""
self._resource_time_zone = resource_time_zone
@property
def license(self):
"""
Gets the license of this CreateMonitoredResourceDetails.
License edition of the monitored resource. If not provided
the default license type for the compartment will be used.
Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION"
:return: The license of this CreateMonitoredResourceDetails.
:rtype: str
"""
return self._license
@license.setter
def license(self, license):
"""
Sets the license of this CreateMonitoredResourceDetails.
License edition of the monitored resource. If not provided
the default license type for the compartment will be used.
:param license: The license of this CreateMonitoredResourceDetails.
:type: str
"""
allowed_values = ["STANDARD_EDITION", "ENTERPRISE_EDITION"]
if not value_allowed_none_or_none_sentinel(license, allowed_values):
raise ValueError(
f"Invalid value for `license`, must be None or one of {allowed_values}"
)
self._license = license
@property
def properties(self):
"""
Gets the properties of this CreateMonitoredResourceDetails.
List of monitored resource properties.
:return: The properties of this CreateMonitoredResourceDetails.
:rtype: list[oci.stack_monitoring.models.MonitoredResourceProperty]
"""
return self._properties
@properties.setter
def properties(self, properties):
"""
Sets the properties of this CreateMonitoredResourceDetails.
List of monitored resource properties.
:param properties: The properties of this CreateMonitoredResourceDetails.
:type: list[oci.stack_monitoring.models.MonitoredResourceProperty]
"""
self._properties = properties
@property
def database_connection_details(self):
"""
Gets the database_connection_details of this CreateMonitoredResourceDetails.
:return: The database_connection_details of this CreateMonitoredResourceDetails.
:rtype: oci.stack_monitoring.models.ConnectionDetails
"""
return self._database_connection_details
@database_connection_details.setter
def database_connection_details(self, database_connection_details):
"""
Sets the database_connection_details of this CreateMonitoredResourceDetails.
:param database_connection_details: The database_connection_details of this CreateMonitoredResourceDetails.
:type: oci.stack_monitoring.models.ConnectionDetails
"""
self._database_connection_details = database_connection_details
@property
def credentials(self):
"""
Gets the credentials of this CreateMonitoredResourceDetails.
:return: The credentials of this CreateMonitoredResourceDetails.
:rtype: oci.stack_monitoring.models.MonitoredResourceCredential
"""
return self._credentials
@credentials.setter
def credentials(self, credentials):
"""
Sets the credentials of this CreateMonitoredResourceDetails.
:param credentials: The credentials of this CreateMonitoredResourceDetails.
:type: oci.stack_monitoring.models.MonitoredResourceCredential
"""
self._credentials = credentials
@property
def aliases(self):
"""
Gets the aliases of this CreateMonitoredResourceDetails.
:return: The aliases of this CreateMonitoredResourceDetails.
:rtype: oci.stack_monitoring.models.MonitoredResourceAliasCredential
"""
return self._aliases
@aliases.setter
def aliases(self, aliases):
"""
Sets the aliases of this CreateMonitoredResourceDetails.
:param aliases: The aliases of this CreateMonitoredResourceDetails.
:type: oci.stack_monitoring.models.MonitoredResourceAliasCredential
"""
self._aliases = aliases
@property
def additional_credentials(self):
"""
Gets the additional_credentials of this CreateMonitoredResourceDetails.
List of MonitoredResourceCredentials. This property complements the existing
\"credentials\" property by allowing user to specify more than one credential.
If both \"credential\" and \"additionalCredentials\" are specified, union of the
values is used as list of credentials applicable for this resource.
If any duplicate found in the combined list of \"credentials\" and \"additionalCredentials\",
an error will be thrown.
:return: The additional_credentials of this CreateMonitoredResourceDetails.
:rtype: list[oci.stack_monitoring.models.MonitoredResourceCredential]
"""
return self._additional_credentials
@additional_credentials.setter
def additional_credentials(self, additional_credentials):
"""
Sets the additional_credentials of this CreateMonitoredResourceDetails.
List of MonitoredResourceCredentials. This property complements the existing
\"credentials\" property by allowing user to specify more than one credential.
If both \"credential\" and \"additionalCredentials\" are specified, union of the
values is used as list of credentials applicable for this resource.
If any duplicate found in the combined list of \"credentials\" and \"additionalCredentials\",
an error will be thrown.
:param additional_credentials: The additional_credentials of this CreateMonitoredResourceDetails.
:type: list[oci.stack_monitoring.models.MonitoredResourceCredential]
"""
self._additional_credentials = additional_credentials
@property
def additional_aliases(self):
"""
Gets the additional_aliases of this CreateMonitoredResourceDetails.
List of MonitoredResourceAliasCredentials. This property complements the existing
\"aliases\" property by allowing user to specify more than one credential alias.
If both \"aliases\" and \"additionalAliases\" are specified, union of the
values is used as list of aliases applicable for this resource.
If any duplicate found in the combined list of \"alias\" and \"additionalAliases\",
an error will be thrown.
:return: The additional_aliases of this CreateMonitoredResourceDetails.
:rtype: list[oci.stack_monitoring.models.MonitoredResourceAliasCredential]
"""
return self._additional_aliases
@additional_aliases.setter
def additional_aliases(self, additional_aliases):
"""
Sets the additional_aliases of this CreateMonitoredResourceDetails.
List of MonitoredResourceAliasCredentials. This property complements the existing
\"aliases\" property by allowing user to specify more than one credential alias.
If both \"aliases\" and \"additionalAliases\" are specified, union of the
values is used as list of aliases applicable for this resource.
If any duplicate found in the combined list of \"alias\" and \"additionalAliases\",
an error will be thrown.
:param additional_aliases: The additional_aliases of this CreateMonitoredResourceDetails.
:type: list[oci.stack_monitoring.models.MonitoredResourceAliasCredential]
"""
self._additional_aliases = additional_aliases
@property
def freeform_tags(self):
"""
Gets the freeform_tags of this CreateMonitoredResourceDetails.
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
Example: `{\"bar-key\": \"value\"}`
:return: The freeform_tags of this CreateMonitoredResourceDetails.
:rtype: dict(str, str)
"""
return self._freeform_tags
@freeform_tags.setter
def freeform_tags(self, freeform_tags):
"""
Sets the freeform_tags of this CreateMonitoredResourceDetails.
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
Example: `{\"bar-key\": \"value\"}`
:param freeform_tags: The freeform_tags of this CreateMonitoredResourceDetails.
:type: dict(str, str)
"""
self._freeform_tags = freeform_tags
@property
def defined_tags(self):
"""
Gets the defined_tags of this CreateMonitoredResourceDetails.
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
:return: The defined_tags of this CreateMonitoredResourceDetails.
: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 CreateMonitoredResourceDetails.
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
:param defined_tags: The defined_tags of this CreateMonitoredResourceDetails.
: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