MonitoredResourceCredential

class oci.stack_monitoring.models.MonitoredResourceCredential(**kwargs)

Bases: object

Monitored Resource Credential Details.

Attributes

CREDENTIAL_TYPE_ENCRYPTED A constant which can be used with the credential_type property of a MonitoredResourceCredential.
CREDENTIAL_TYPE_EXISTING A constant which can be used with the credential_type property of a MonitoredResourceCredential.
CREDENTIAL_TYPE_PLAINTEXT A constant which can be used with the credential_type property of a MonitoredResourceCredential.
credential_type Gets the credential_type of this MonitoredResourceCredential.
description Gets the description of this MonitoredResourceCredential.
name Gets the name of this MonitoredResourceCredential.
source Gets the source of this MonitoredResourceCredential.
type Gets the type of this MonitoredResourceCredential.

Methods

__init__(**kwargs) Initializes a new MonitoredResourceCredential 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'

A constant which can be used with the credential_type property of a MonitoredResourceCredential. This constant has a value of “ENCRYPTED”

CREDENTIAL_TYPE_EXISTING = 'EXISTING'

A constant which can be used with the credential_type property of a MonitoredResourceCredential. This constant has a value of “EXISTING”

CREDENTIAL_TYPE_PLAINTEXT = 'PLAINTEXT'

A constant which can be used with the credential_type property of a MonitoredResourceCredential. This constant has a value of “PLAINTEXT”

__init__(**kwargs)

Initializes a new MonitoredResourceCredential object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

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 MonitoredResourceCredential.
  • name (str) – The value to assign to the name property of this MonitoredResourceCredential.
  • type (str) – The value to assign to the type property of this MonitoredResourceCredential.
  • description (str) – The value to assign to the description property of this MonitoredResourceCredential.
  • credential_type (str) – The value to assign to the credential_type property of this MonitoredResourceCredential. 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’.
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
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