KeyVersion

class oci.key_management.models.KeyVersion(**kwargs)

Bases: object

KeyVersion model.

__init__(**kwargs)

Initializes a new KeyVersion object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • compartment_id (str) -- The value to assign to the compartment_id property of this KeyVersion.
  • id (str) -- The value to assign to the id property of this KeyVersion.
  • key_id (str) -- The value to assign to the key_id property of this KeyVersion.
  • time_created (datetime) -- The value to assign to the time_created property of this KeyVersion.
  • vault_id (str) -- The value to assign to the vault_id property of this KeyVersion.
compartment_id

[Required] Gets the compartment_id of this KeyVersion. The OCID of the compartment that contains this key version.

Returns:The compartment_id of this KeyVersion.
Return type:str
id

[Required] Gets the id of this KeyVersion. The OCID of the key version.

Returns:The id of this KeyVersion.
Return type:str
key_id

[Required] Gets the key_id of this KeyVersion. The OCID of the key associated with this key version.

Returns:The key_id of this KeyVersion.
Return type:str
time_created

[Required] Gets the time_created of this KeyVersion. The date and time this key version was created, expressed in RFC 3339 timestamp format.

Example: "2018-04-03T21:10:29.600Z"

Returns:The time_created of this KeyVersion.
Return type:datetime
vault_id

[Required] Gets the vault_id of this KeyVersion. The OCID of the vault that contains this key version.

Returns:The vault_id of this KeyVersion.
Return type:str