PlainTextCredentials¶
-
class
oci.stack_monitoring.models.
PlainTextCredentials
(**kwargs)¶ Bases:
oci.stack_monitoring.models.monitored_resource_credential.MonitoredResourceCredential
Plain text credentials [indicated by the type property in CredentialStore].
Attributes
CREDENTIAL_TYPE_ENCRYPTED
str(object=’’) -> str CREDENTIAL_TYPE_EXISTING
str(object=’’) -> str CREDENTIAL_TYPE_PLAINTEXT
str(object=’’) -> str credential_type
Gets the credential_type of this MonitoredResourceCredential. description
Gets the description of this MonitoredResourceCredential. name
Gets the name of this MonitoredResourceCredential. properties
[Required] Gets the properties of this PlainTextCredentials. source
Gets the source of this MonitoredResourceCredential. type
Gets the type of this MonitoredResourceCredential. Methods
__init__
(**kwargs)Initializes a new PlainTextCredentials object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
CREDENTIAL_TYPE_ENCRYPTED
= 'ENCRYPTED'¶
-
CREDENTIAL_TYPE_EXISTING
= 'EXISTING'¶
-
CREDENTIAL_TYPE_PLAINTEXT
= 'PLAINTEXT'¶
-
__init__
(**kwargs)¶ Initializes a new PlainTextCredentials object with values from keyword arguments. The default value of the
credential_type
attribute of this class isPLAINTEXT
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - source (str) – The value to assign to the source property of this PlainTextCredentials.
- name (str) – The value to assign to the name property of this PlainTextCredentials.
- type (str) – The value to assign to the type property of this PlainTextCredentials.
- description (str) – The value to assign to the description property of this PlainTextCredentials.
- credential_type (str) – The value to assign to the credential_type property of this PlainTextCredentials. Allowed values for this property are: “EXISTING”, “PLAINTEXT”, “ENCRYPTED”
- properties (list[oci.stack_monitoring.models.CredentialProperty]) – The value to assign to the properties property of this PlainTextCredentials.
-
credential_type
¶ Gets the credential_type of this MonitoredResourceCredential. Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED. * EXISTING - Credential is already stored in agent and only credential name need
to be passed for existing credential.- PLAINTEXT - The credential properties will have credentials in plain text format.
- ENCRYPTED - The credential properties will have credentials stored in vault in
- encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent.
Allowed values for this property are: “EXISTING”, “PLAINTEXT”, “ENCRYPTED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The credential_type of this MonitoredResourceCredential. Return type: str
-
description
¶ Gets the description of this MonitoredResourceCredential. The user-specified textual description of the credential.
Returns: The description of this MonitoredResourceCredential. Return type: str
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
name
¶ Gets the name of this MonitoredResourceCredential. The name of the credential, within the context of the source.
Returns: The name of this MonitoredResourceCredential. Return type: str
-
properties
¶ [Required] Gets the properties of this PlainTextCredentials. The credential properties list. Credential property values will be either in plain text format or encrypted for encrypted credentials.
Returns: The properties of this PlainTextCredentials. Return type: list[oci.stack_monitoring.models.CredentialProperty]
-
source
¶ Gets the source of this MonitoredResourceCredential. The source type and source name combination, delimited with (.) separator. {source type}.{source name} and source type max char limit is 63.
Returns: The source of this MonitoredResourceCredential. Return type: str
-
type
¶ Gets the type of this MonitoredResourceCredential. The type of the credential ( ex. JMXCreds,DBCreds).
Returns: The type of this MonitoredResourceCredential. Return type: str
-