PlainTextCredentials

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

Bases: MonitoredResourceCredential

Plain text credentials [indicated by the type property in CredentialStore].

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. 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.

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'

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 PlainTextCredentials object with values from keyword arguments. The default value of the credential_type attribute of this class is PLAINTEXT 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.

property 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

property 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.

property 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

property 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]

property 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

property type

Gets the type of this MonitoredResourceCredential. The type of the credential ( ex. JMXCreds,DBCreds).

Returns

The type of this MonitoredResourceCredential.

Return type

str