CreatePreauthenticatedRequestDetails¶
-
class
oci.object_storage.models.
CreatePreauthenticatedRequestDetails
(**kwargs)¶ Bases:
object
CreatePreauthenticatedRequestDetails model.
Attributes
ACCESS_TYPE_ANY_OBJECT_READ
A constant which can be used with the access_type property of a CreatePreauthenticatedRequestDetails. ACCESS_TYPE_ANY_OBJECT_READ_WRITE
A constant which can be used with the access_type property of a CreatePreauthenticatedRequestDetails. ACCESS_TYPE_ANY_OBJECT_WRITE
A constant which can be used with the access_type property of a CreatePreauthenticatedRequestDetails. ACCESS_TYPE_OBJECT_READ
A constant which can be used with the access_type property of a CreatePreauthenticatedRequestDetails. ACCESS_TYPE_OBJECT_READ_WRITE
A constant which can be used with the access_type property of a CreatePreauthenticatedRequestDetails. ACCESS_TYPE_OBJECT_WRITE
A constant which can be used with the access_type property of a CreatePreauthenticatedRequestDetails. access_type
[Required] Gets the access_type of this CreatePreauthenticatedRequestDetails. bucket_listing_action
Gets the bucket_listing_action of this CreatePreauthenticatedRequestDetails. name
[Required] Gets the name of this CreatePreauthenticatedRequestDetails. object_name
Gets the object_name of this CreatePreauthenticatedRequestDetails. time_expires
[Required] Gets the time_expires of this CreatePreauthenticatedRequestDetails. Methods
__init__
(**kwargs)Initializes a new CreatePreauthenticatedRequestDetails object with values from keyword arguments. -
ACCESS_TYPE_ANY_OBJECT_READ
= 'AnyObjectRead'¶ A constant which can be used with the access_type property of a CreatePreauthenticatedRequestDetails. This constant has a value of “AnyObjectRead”
-
ACCESS_TYPE_ANY_OBJECT_READ_WRITE
= 'AnyObjectReadWrite'¶ A constant which can be used with the access_type property of a CreatePreauthenticatedRequestDetails. This constant has a value of “AnyObjectReadWrite”
-
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.
- bucket_listing_action (str) – The value to assign to the bucket_listing_action 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”, “AnyObjectRead”, “AnyObjectReadWrite”
- 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”, “AnyObjectRead”, “AnyObjectReadWrite”
Returns: The access_type of this CreatePreauthenticatedRequestDetails. Return type: str
-
bucket_listing_action
¶ Gets the bucket_listing_action of this CreatePreauthenticatedRequestDetails. Specifies whether a list operation is allowed on a PAR with accessType “AnyObjectRead” or “AnyObjectReadWrite”. Deny: Prevents the user from performing a list operation. ListObjects: Authorizes the user to perform a list operation.
Returns: The bucket_listing_action 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. Avoid entering confidential information.
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 if the access type allows that. The object name can be a prefix as well, in that case pre-authenticated request grants access to all the objects within the bucket starting with that prefix provided that we have the correct access type.
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
-