PreauthenticatedRequest

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

Bases: object

Pre-authenticated requests provide a way to let users access a bucket or an object without having their own credentials. When you create a pre-authenticated request, a unique URL is generated. Users in your organization, partners, or third parties can use this URL to access the targets identified in the pre-authenticated request. See Using Pre-Authenticated Requests.

To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see Getting Started with Policies.

ACCESS_TYPE_ANY_OBJECT_WRITE = 'AnyObjectWrite'

A constant which can be used with the access_type property of a PreauthenticatedRequest. 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 PreauthenticatedRequest. 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 PreauthenticatedRequest. 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 PreauthenticatedRequest. This constant has a value of "ObjectWrite"

__init__(**kwargs)

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

Parameters:
  • id (str) -- The value to assign to the id property of this PreauthenticatedRequest.
  • name (str) -- The value to assign to the name property of this PreauthenticatedRequest.
  • access_uri (str) -- The value to assign to the access_uri property of this PreauthenticatedRequest.
  • object_name (str) -- The value to assign to the object_name property of this PreauthenticatedRequest.
  • access_type (str) -- The value to assign to the access_type property of this PreauthenticatedRequest. Allowed values for this property are: "ObjectRead", "ObjectWrite", "ObjectReadWrite", "AnyObjectWrite", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • time_expires (datetime) -- The value to assign to the time_expires property of this PreauthenticatedRequest.
  • time_created (datetime) -- The value to assign to the time_created property of this PreauthenticatedRequest.
access_type

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

Allowed values for this property are: "ObjectRead", "ObjectWrite", "ObjectReadWrite", "AnyObjectWrite", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The access_type of this PreauthenticatedRequest.
Return type:str
access_uri

[Required] Gets the access_uri of this PreauthenticatedRequest. The URI to embed in the URL when using the pre-authenticated request.

Returns:The access_uri of this PreauthenticatedRequest.
Return type:str
id

[Required] Gets the id of this PreauthenticatedRequest. The unique identifier to use when directly addressing the pre-authenticated request.

Returns:The id of this PreauthenticatedRequest.
Return type:str
name

[Required] Gets the name of this PreauthenticatedRequest. The user-provided name of the pre-authenticated request.

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

Gets the object_name of this PreauthenticatedRequest. 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 PreauthenticatedRequest.
Return type:str
time_created

[Required] Gets the time_created of this PreauthenticatedRequest. The date when the pre-authenticated request was created as per specification RFC 3339.

Returns:The time_created of this PreauthenticatedRequest.
Return type:datetime
time_expires

[Required] Gets the time_expires of this PreauthenticatedRequest. 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 PreauthenticatedRequest.
Return type:datetime