PasswordInVault¶
- class oci.apm_synthetics.models.PasswordInVault(**kwargs)¶
Bases:
PasswordVault secret OCID for password that can be used with monitor Resource Principal. Example, ocid1.vaultsecret.oc1.iad.amaaaaaagpihjxqadwyc4kjhpeis2bylhzmp5r2si6mz2h4eujevnmf3zoca.
Attributes:
A constant which can be used with the password_type property of a Password.
A constant which can be used with the password_type property of a Password.
Gets the password_type of this Password.
[Required] Gets the vault_secret_id of this PasswordInVault.
Methods:
__init__(**kwargs)Initializes a new PasswordInVault 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.
- PASSWORD_TYPE_IN_TEXT = 'IN_TEXT'¶
A constant which can be used with the password_type property of a Password. This constant has a value of “IN_TEXT”
- PASSWORD_TYPE_VAULT_SECRET_ID = 'VAULT_SECRET_ID'¶
A constant which can be used with the password_type property of a Password. This constant has a value of “VAULT_SECRET_ID”
- __init__(**kwargs)¶
Initializes a new PasswordInVault object with values from keyword arguments. The default value of the
password_typeattribute of this class isVAULT_SECRET_IDand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
password_type (str) – The value to assign to the password_type property of this PasswordInVault. Allowed values for this property are: “IN_TEXT”, “VAULT_SECRET_ID”
vault_secret_id (str) – The value to assign to the vault_secret_id property of this PasswordInVault.
- 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 password_type¶
Gets the password_type of this Password. Type of method to pass password.
Allowed values for this property are: “IN_TEXT”, “VAULT_SECRET_ID”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The password_type of this Password.
- Return type
str
- property vault_secret_id¶
[Required] Gets the vault_secret_id of this PasswordInVault. Vault secret OCID.
- Returns
The vault_secret_id of this PasswordInVault.
- Return type
str