KeyDetails¶
-
class
oci.generative_ai.models.KeyDetails(**kwargs)¶ Bases:
objectThe data to create/renew an API key item.
Methods
__init__(**kwargs)Initializes a new KeyDetails object with values from keyword arguments. Attributes
key_name[Required] Gets the key_name of this KeyDetails. time_expiry[Required] Gets the time_expiry of this KeyDetails. -
__init__(**kwargs)¶ Initializes a new KeyDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - key_name (str) – The value to assign to the key_name property of this KeyDetails.
- time_expiry (datetime) – The value to assign to the time_expiry property of this KeyDetails.
-
key_name¶ [Required] Gets the key_name of this KeyDetails. The key to renew.
Returns: The key_name of this KeyDetails. Return type: str
-
time_expiry¶ [Required] Gets the time_expiry of this KeyDetails. The date and time when the key would be expired, if not provided it would be 90 days, in the format defined by RFC 3339.
Returns: The time_expiry of this KeyDetails. Return type: datetime
-