CreatePreauthenticatedRequestDetails

class oci.object_storage.models.CreatePreauthenticatedRequestDetails(**kwargs)

Bases: object

CreatePreauthenticatedRequestDetails model.

ACCESS_TYPE_ANY_OBJECT_WRITE = 'AnyObjectWrite'

A constant which can be used with the access_type property of a CreatePreauthenticatedRequestDetails. This constant has a value of "AnyObjectWrite"

ACCESS_TYPE_OBJECT_READ = 'ObjectRead'

A constant which can be used with the access_type property of a CreatePreauthenticatedRequestDetails. This constant has a value of "ObjectRead"

ACCESS_TYPE_OBJECT_READ_WRITE = 'ObjectReadWrite'

A constant which can be used with the access_type property of a CreatePreauthenticatedRequestDetails. This constant has a value of "ObjectReadWrite"

ACCESS_TYPE_OBJECT_WRITE = 'ObjectWrite'

A constant which can be used with the access_type property of a CreatePreauthenticatedRequestDetails. This constant has a value of "ObjectWrite"

__init__(**kwargs)

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

Parameters:
  • name (str) -- The value to assign to the name property of this CreatePreauthenticatedRequestDetails.
  • object_name (str) -- The value to assign to the object_name property of this CreatePreauthenticatedRequestDetails.
  • access_type (str) -- The value to assign to the access_type property of this CreatePreauthenticatedRequestDetails. Allowed values for this property are: "ObjectRead", "ObjectWrite", "ObjectReadWrite", "AnyObjectWrite"
  • time_expires (datetime) -- The value to assign to the time_expires property of this CreatePreauthenticatedRequestDetails.
access_type

[Required] Gets the access_type of this CreatePreauthenticatedRequestDetails. The operation that can be performed on this resource.

Allowed values for this property are: "ObjectRead", "ObjectWrite", "ObjectReadWrite", "AnyObjectWrite"

Returns:The access_type of this CreatePreauthenticatedRequestDetails.
Return type:str
name

[Required] Gets the name of this CreatePreauthenticatedRequestDetails. A user-specified name for the pre-authenticated request. Names can be helpful in managing pre-authenticated requests.

Returns:The name of this CreatePreauthenticatedRequestDetails.
Return type:str
object_name

Gets the object_name of this CreatePreauthenticatedRequestDetails. The name of the object that is being granted access to by the pre-authenticated request. Avoid entering confidential information. The object name can be null and if so, the pre-authenticated request grants access to the entire bucket.

Returns:The object_name of this CreatePreauthenticatedRequestDetails.
Return type:str
time_expires

[Required] Gets the time_expires of this CreatePreauthenticatedRequestDetails. The expiration date for the pre-authenticated request as per RFC 3339. After this date the pre-authenticated request will no longer be valid.

Returns:The time_expires of this CreatePreauthenticatedRequestDetails.
Return type:datetime