OBSAbstractPutObjectRequest Class Reference

Inherits from OBSBaseRequest : OBSAbstractModel : OBSMTLModel
Conforms to OBSPutObjectProtocol
Declared in OBSPutObjectModel.h
OBSPutObjectModel.m

Overview

Parent class of the object upload request

  bucketName

Bucket name

@property (nonatomic, strong, nonnull) NSString *bucketName

Declared In

OBSPutObjectModel.h

  objectKey

Object name

@property (nonatomic, strong, nonnull) NSString *objectKey

Declared In

OBSPutObjectModel.h

  contentMD5

MD5 value of the object

@property (nonatomic, strong, nonnull) NSString *contentMD5

Declared In

OBSPutObjectModel.h

  objectACLPolicy

Object ACL

@property (nonatomic, assign) OBSACLPolicy objectACLPolicy

Declared In

OBSPutObjectModel.h

  storageClass

Object storage class

@property (nonatomic, assign) OBSStorageClass storageClass

Declared In

OBSPutObjectModel.h

  metaDataDict

Object metadata dictionary

@property (nonatomic, strong, nullable) NSDictionary *metaDataDict

Declared In

OBSPutObjectModel.h

  websiteRedirectLocation

Redirection address of the object

@property (nonatomic, strong, nonnull) NSString *websiteRedirectLocation

Declared In

OBSPutObjectModel.h

  granteRead

When creating an object, you can use this header to authorize all users in the given domain the permission to read objects and obtain object metadata.

@property (nonatomic, strong, nonnull) NSString *granteRead

Declared In

OBSPutObjectModel.h

  granteReadAcp

When creating an object, you can use this header to authorize all users in the given domain the permission to read objects and obtain object metadata.

@property (nonatomic, strong, nonnull) NSString *granteReadAcp

Declared In

OBSPutObjectModel.h

  granteWriteAcp

When creating an object, you can use this header to authorize all users in the given domain the permission to write the object ACL.

@property (nonatomic, strong, nonnull) NSString *granteWriteAcp

Declared In

OBSPutObjectModel.h

  granteFullControl

When creating an object, you can use this header to authorize all users in the given domain the permission to read objects, obtain object metadata, obtain the object ACL, and write the object ACL.

@property (nonatomic, strong, nonnull) NSString *granteFullControl

Declared In

OBSPutObjectModel.h

  actionRedirect

The parameter value is a URL to which a successfully responded request is redirected.

@property (nonatomic, strong, nonnull) NSString *actionRedirect

Discussion

If the value is valid and the request is successful, status code “303” will be returned and the “location” header contains the bucket name, object name, and object ETag.

If the value is invalid, this parameter is ineffective, status code “204” will be returned, and the “location” header specifies the object address.

Declared In

OBSPutObjectModel.h

  expires

Expiration time of an uploaded object, in days

@property (nonatomic, strong, nonnull) NSNumber *expires

Declared In

OBSPutObjectModel.h

  encryption

Encryption mode

@property (nonatomic, strong, nonnull) __kindof OBSAbstractEncryption *encryption

Declared In

OBSPutObjectModel.h

  uploadProgressBlock

Callback function for uploading an object

@property (nonatomic, copy, nonnull) OBSNetworkingUploadProgressBlock uploadProgressBlock

Declared In

OBSPutObjectModel.h