QCloudAppendObjectRequest.h 5.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //
  2. // AppendObject.h
  3. // AppendObject
  4. //
  5. // Created by tencent
  6. // Copyright (c) 2015年 tencent. All rights reserved.
  7. //
  8. // ██████╗ ██████╗██╗ ██████╗ ██╗ ██╗██████╗ ████████╗███████╗██████╗ ███╗ ███╗██╗███╗ ██╗ █████╗ ██╗ ██╗ █████╗ ██████╗
  9. // ██╔═══██╗██╔════╝██║ ██╔═══██╗██║ ██║██╔══██╗ ╚══██╔══╝██╔════╝██╔══██╗████╗ ████║██║████╗ ██║██╔══██╗██║ ██║ ██╔══██╗██╔══██╗
  10. // ██║ ██║██║ ██║ ██║ ██║██║ ██║██║ ██║ ██║ █████╗ ██████╔╝██╔████╔██║██║██╔██╗ ██║███████║██║ ██║ ███████║██████╔╝
  11. // ██║▄▄ ██║██║ ██║ ██║ ██║██║ ██║██║ ██║ ██║ ██╔══╝ ██╔══██╗██║╚██╔╝██║██║██║╚██╗██║██╔══██║██║ ██║ ██╔══██║██╔══██╗
  12. // ╚██████╔╝╚██████╗███████╗╚██████╔╝╚██████╔╝██████╔╝ ██║ ███████╗██║ ██║██║ ╚═╝ ██║██║██║ ╚████║██║ ██║███████╗ ███████╗██║ ██║██████╔╝
  13. // ╚══▀▀═╝ ╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚═╝ ╚═╝╚═════╝
  14. //
  15. //
  16. // _ __ _ _
  17. // (_) / _| | | | |
  18. // ___ ___ _ ____ ___ ___ ___ | |_ ___ _ __ __| | _____ _____| | ___ _ __ ___ _ __ ___
  19. // / __|/ _ \ '__\ \ / / |/ __/ _ \ | _/ _ \| '__| / _` |/ _ \ \ / / _ \ |/ _ \| '_ \ / _ \ '__/ __|
  20. // \__ \ __/ | \ V /| | (_| __/ | || (_) | | | (_| | __/\ V / __/ | (_) | |_) | __/ | \__
  21. // |___/\___|_| \_/ |_|\___\___| |_| \___/|_| \__,_|\___| \_/ \___|_|\___/| .__/ \___|_| |___/
  22. // ______ ______ ______ ______ ______ ______ ______ ______ | |
  23. // |______|______|______|______|______|______|______|______| |_|
  24. //
  25. #import <Foundation/Foundation.h>
  26. #import <QCloudCore/QCloudCore.h>
  27. #import "QCloudCOSStorageClassEnum.h"
  28. NS_ASSUME_NONNULL_BEGIN
  29. /**
  30. Append Object
  31. */
  32. @interface QCloudAppendObjectRequest <BodyType> : QCloudBizHTTPRequest
  33. @property (nonatomic, strong) BodyType body;
  34. /**
  35. 位置
  36. */
  37. @property (assign, nonatomic) int64_t position;
  38. /**
  39. 存储桶名
  40. */
  41. @property (strong, nonatomic) NSString *bucket;
  42. /**
  43. 对象名
  44. */
  45. @property (strong, nonatomic) NSString *object;
  46. /**
  47. RFC 2616 中定义的缓存策略,将作为 Object 元数据返回
  48. */
  49. @property (strong, nonatomic) NSString *cacheControl;
  50. /**
  51. RFC 2616 中定义的文件名称,将作为 Object 元数据返回
  52. */
  53. @property (strong, nonatomic) NSString *contentDisposition;
  54. /**
  55. 当使用 Expect: 100-continue 时,在收到服务端确认后,才会发送请求内容
  56. */
  57. @property (strong, nonatomic) NSString *expect;
  58. /**
  59. RFC 2616 中定义的过期时间,将作为 Object 元数据返回
  60. */
  61. @property (strong, nonatomic) NSString *expires;
  62. @property (strong, nonatomic) NSString *contentSHA1;
  63. @property (assign, nonatomic) QCloudCOSStorageClass storageClass;
  64. /**
  65. 定义 Object 的 ACL 属性。有效值:private,public-read-write,public-read;默认值:private
  66. */
  67. @property (strong, nonatomic) NSString *accessControlList;
  68. /**
  69. 赋予被授权者读的权限。格式:x-cos-grant-read: id=" ",id=" ";
  70. 当需要给子账户授权时,id="qcs::cam::uin/<OwnerUin>:uin/<SubUin>",
  71. 当需要给根账户授权时,id="qcs::cam::uin/<OwnerUin>:uin/<OwnerUin>"
  72. */
  73. @property (strong, nonatomic) NSString *grantRead;
  74. /**
  75. 赋予被授权者写的权限。格式:x-cos-grant-write: id=" ",id=" ";
  76. 当需要给子账户授权时,id="qcs::cam::uin/<OwnerUin>:uin/<SubUin>",
  77. 当需要给根账户授权时,id="qcs::cam::uin/<OwnerUin>:uin/<OwnerUin>"
  78. */
  79. @property (strong, nonatomic) NSString *grantWrite;
  80. /**
  81. 赋予被授权者读写权限。格式:x-cos-grant-full-control: id=" ",id=" ";
  82. 当需要给子账户授权时,id="qcs::cam::uin/<OwnerUin>:uin/<SubUin>",
  83. 当需要给根账户授权时,id="qcs::cam::uin/<OwnerUin>:uin/<OwnerUin>"
  84. */
  85. @property (strong, nonatomic) NSString *grantFullControl;
  86. @end
  87. NS_ASSUME_NONNULL_END