Skip to content

Commit

Permalink
# 6.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
garenwang committed Feb 6, 2023
1 parent 4ef340b commit 774ec1f
Show file tree
Hide file tree
Showing 23 changed files with 678 additions and 37 deletions.
43 changes: 27 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,42 @@
# 6.1.7
# 6.1.8


# 6.1.7
1.修复断点下载进度bug

# 6.1.6

# 6.1.6
1.新增图片修复、人脸识别、人体识别、文字识别等十余个接口
# 6.1.5

# 6.1.5
1.新增急速识别相关参数
补充急速识别相关参数

# 6.1.4
1.新增分词相关接口
# 6.1.4

# 6.1.3
新增分词接口

# 6.1.3
1.新增语音识别相关接口


# 6.1.2
1.request新增payload参数。 2.修复已知bug

# 6.1.2
1.request新增payload参数。 2.修复已知bug"

# 6.1.1
1.修改头文件大小写问题
# 6.1.1

# 6.1.0
1.优化service注册校验逻辑。2.修复全部取消。
修改头文件大小写问题

# 6.1.0

# 6.0.9
1.优化service注册校验逻辑。2.修复全部取消。

# 6.0.9

1.新增内容审核接口

# 6.0.8

1.修改sdk与yymodel 方法命名冲突。2.修改一些SDK 内部一些警告
Expand Down
8 changes: 4 additions & 4 deletions QCloudCOSXML.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |s|
s.name = "QCloudCOSXML"


s.version = "6.1.7"
s.version = "6.1.8"


s.summary = "QCloudCOSXML 腾讯云iOS-SDK组件"
Expand All @@ -22,15 +22,15 @@ s.version = "6.1.7"
s.subspec 'Default' do |default|
default.source_files = 'QCloudCOSXML/Classes/**/*','QCloudCOSXML/Classes/QCloudCOSXML/*'

default.dependency "QCloudCore",'6.1.7'
default.dependency "QCloudCore",'6.1.8'
end
s.subspec 'Slim' do |slim|
slim.source_files = 'QCloudCOSXML/Classes/**/*','QCloudCOSXML/Classes/QCloudCOSXML/*'
slim.dependency "QCloudCore/WithoutMTA",'6.1.7'
slim.dependency "QCloudCore/WithoutMTA",'6.1.8'
end
s.subspec 'Transfer' do |transfer|
transfer.source_files = 'QCloudCOSXML/Classes/*','QCloudCOSXML/Classes/Transfer/**/*','QCloudCOSXML/Classes/Base/**/*'
transfer.dependency "QCloudCore/WithoutMTA",'6.1.7'
transfer.dependency "QCloudCore/WithoutMTA",'6.1.8'

end

Expand Down
7 changes: 7 additions & 0 deletions QCloudCOSXML/Classes/Manager/QCloudCOSXMLService+Manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
@class QCloudPutBucketRefererRequest;
@class QCloudGetBucketRefererRequest;
@class QCloudPutObjectTaggingRequest;
@class QCloudGetBucketPolicyRequest;
@class QCloudPutBucketPolicyRequest;
@class QCloudDeleteBucketPolicyRequest;
NS_ASSUME_NONNULL_BEGIN
@interface QCloudCOSXMLService (Manager)

Expand Down Expand Up @@ -118,6 +121,10 @@ NS_ASSUME_NONNULL_BEGIN
- (void)PutBucketReferer:(QCloudPutBucketRefererRequest *)request;
- (void)GetBucketReferer:(QCloudGetBucketRefererRequest *)request;

-(void)GetBucketPolicy:(QCloudGetBucketPolicyRequest *)request;
-(void)PutBucketPolicy:(QCloudPutBucketPolicyRequest *)request;
-(void)DeleteBucketPolicy:(QCloudDeleteBucketPolicyRequest *)request;

#pragma mark - object
- (void)GetBucket:(QCloudGetBucketRequest *)request;
- (void)DeleteObject:(QCloudDeleteObjectRequest *)request;
Expand Down
15 changes: 15 additions & 0 deletions QCloudCOSXML/Classes/Manager/QCloudCOSXMLService+Manager.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
#import "QCloudPostVideoRecognitionRequest.h"
#import "QCloudAppendObjectRequest.h"
#import "QCloudDeleteObjectTaggingRequest.h"
#import "QCloudGetBucketPolicyRequest.h"
#import "QCloudPutBucketPolicyRequest.h"
#import "QCloudDeleteBucketPolicyRequest.h"

@implementation QCloudCOSXMLService (Manager)

Expand Down Expand Up @@ -256,6 +259,18 @@ - (void)AppendObject:(QCloudAppendObjectRequest*)request{
[super performRequest:request];
}

-(void)GetBucketPolicy:(QCloudGetBucketPolicyRequest *)request{
[super performRequest:request];
}

-(void)PutBucketPolicy:(QCloudPutBucketPolicyRequest *)request{
[super performRequest:request];
}

-(void)DeleteBucketPolicy:(QCloudDeleteBucketPolicyRequest *)request{
[super performRequest:request];
}

- (void)getPresignedURL:(QCloudGetPresignedURLRequest *)request {
request.runOnService = self;
request.signatureProvider = self.configuration.signatureProvider;
Expand Down
45 changes: 45 additions & 0 deletions QCloudCOSXML/Classes/Manager/model/QCloudBucketPolicyResult.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//
// QCloudBucketPolicyResult.h
// QCloudCOSXML
//
// Created by garenwang on 2023/2/4.
//

#import <Foundation/Foundation.h>
@class QCloudBucketPolicyResultItem;
@class QCloudBucketPolicyResultItemPrincipal;

NS_ASSUME_NONNULL_BEGIN

@interface QCloudBucketPolicyResult : NSObject

/// 权限策略生命列表
@property (strong, nonatomic) NSArray<QCloudBucketPolicyResultItem *> * Statement;

/// 版本号,固定2.0 String 是
@property (strong, nonatomic) NSString * version;
@end

@interface QCloudBucketPolicyResultItem : NSObject

/// 身份信息 ObjectArray 是
@property (strong, nonatomic) QCloudBucketPolicyResultItemPrincipal * Principal;

/// 效力,枚举值:allow、deny String 是
@property (strong, nonatomic) NSString * Effect;

/// 策略生效的相关 Action 列表,支持通配符* StringArray 是
@property (strong, nonatomic) NSArray * Action;

/// 相关的资源标识字符串列表
@property (strong, nonatomic) NSArray * Resource;
@end

@interface QCloudBucketPolicyResultItemPrincipal : NSObject

/// 身份信息标识字符串
/// 格式:qcs::cam::uin/100000000001:uin/100000000011
/// 其中100000000001 是主账号,100000000011是子账号 String 是
@property (strong, nonatomic) NSArray * qcs;
@end
NS_ASSUME_NONNULL_END
28 changes: 28 additions & 0 deletions QCloudCOSXML/Classes/Manager/model/QCloudBucketPolicyResult.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// QCloudBucketPolicyResult.m
// QCloudCOSXML
//
// Created by garenwang on 2023/2/4.
//

#import "QCloudBucketPolicyResult.h"

@implementation QCloudBucketPolicyResult
+ (NSDictionary *)modelContainerPropertyGenericClass {
return @{
@"Statement" : [QCloudBucketPolicyResultItem class],
};
}
@end

@implementation QCloudBucketPolicyResultItem
+ (NSDictionary *)modelContainerPropertyGenericClass {
return @{
@"Principal" : [QCloudBucketPolicyResultItemPrincipal class],
};
}
@end

@implementation QCloudBucketPolicyResultItemPrincipal

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
//
// QCloudDeleteBucketPolicyRequest.h
// QCloudDeleteBucketPolicyRequest
//
// Created by tencent
// Copyright (c) 2015年 tencent. All rights reserved.
//
// ██████╗ ██████╗██╗ ██████╗ ██╗ ██╗██████╗ ████████╗███████╗██████╗ ███╗ ███╗██╗███╗ ██╗ █████╗ ██╗ ██╗ █████╗
// ██████╗
// ██╔═══██╗██╔════╝██║ ██╔═══██╗██║ ██║██╔══██╗ ╚══██╔══╝██╔════╝██╔══██╗████╗ ████║██║████╗ ██║██╔══██╗██║ ██║ ██╔══██╗██╔══██╗
// ██║ ██║██║ ██║ ██║ ██║██║ ██║██║ ██║ ██║ █████╗ ██████╔╝██╔████╔██║██║██╔██╗ ██║███████║██║ ██║ ███████║██████╔╝
// ██║▄▄ ██║██║ ██║ ██║ ██║██║ ██║██║ ██║ ██║ ██╔══╝ ██╔══██╗██║╚██╔╝██║██║██║╚██╗██║██╔══██║██║ ██║ ██╔══██║██╔══██╗
// ╚██████╔╝╚██████╗███████╗╚██████╔╝╚██████╔╝██████╔╝ ██║ ███████╗██║ ██║██║ ╚═╝ ██║██║██║ ╚████║██║ ██║███████╗ ███████╗██║
// ██║██████╔╝
// ╚══▀▀═╝ ╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚═╝ ╚═╝╚═════╝
//
//
// _ __ _ _
// (_) / _| | | | |
// ___ ___ _ ____ ___ ___ ___ | |_ ___ _ __ __| | _____ _____| | ___ _ __ ___ _
// __ ___
// / __|/ _ \ '__\ \ / / |/ __/ _ \ | _/ _ \| '__| / _` |/ _ \ \ / / _ \ |/ _ \| '_ \ / _ \
// '__/ __|
// \__ \ __/ | \ V /| | (_| __/ | || (_) | | | (_| | __/\ V / __/ | (_) | |_) | __/
// | \__
// |___/\___|_| \_/ |_|\___\___| |_| \___/|_| \__,_|\___| \_/ \___|_|\___/| .__/
// \___|_| |___/
// ______ ______ ______ ______ ______ ______ ______ ______ | |
// |______|______|______|______|______|______|______|______| |_|
//

#import <Foundation/Foundation.h>
#import <QCloudCore/QCloudCore.h>
NS_ASSUME_NONNULL_BEGIN
/**
### 功能说明
DELETE Bucket policy 请求可以向存储桶删除权限策略。
请查看 https://cloud.tencent.com/document/product/436/8285
### 示例
@code
QCloudDeleteBucketPolicyRequest * request = [QCloudDeleteBucketPolicyRequest new];
request.bucket = @"0-1253960454";
request.regionName = @"ap-chengdu";
[request setFinishBlock:^(id _Nullable outputObject, NSError * _Nullable error) {
[exp fulfill];
}];
[[QCloudCOSXMLService defaultCOSXML] DeleteBucketPolicy:request];
*/
@interface QCloudDeleteBucketPolicyRequest : QCloudBizHTTPRequest
/**
存储桶名
*/
@property (strong, nonatomic) NSString *bucket;


@end
NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
//
// QCloudDeleteBucketPolicyRequest.m
// QCloudDeleteBucketPolicyRequest
//
// Created by tencent
// Copyright (c) 2015年 tencent. All rights reserved.
//
// ██████╗ ██████╗██╗ ██████╗ ██╗ ██╗██████╗ ████████╗███████╗██████╗ ███╗ ███╗██╗███╗ ██╗ █████╗ ██╗ ██╗ █████╗
// ██████╗
// ██╔═══██╗██╔════╝██║ ██╔═══██╗██║ ██║██╔══██╗ ╚══██╔══╝██╔════╝██╔══██╗████╗ ████║██║████╗ ██║██╔══██╗██║ ██║ ██╔══██╗██╔══██╗
// ██║ ██║██║ ██║ ██║ ██║██║ ██║██║ ██║ ██║ █████╗ ██████╔╝██╔████╔██║██║██╔██╗ ██║███████║██║ ██║ ███████║██████╔╝
// ██║▄▄ ██║██║ ██║ ██║ ██║██║ ██║██║ ██║ ██║ ██╔══╝ ██╔══██╗██║╚██╔╝██║██║██║╚██╗██║██╔══██║██║ ██║ ██╔══██║██╔══██╗
// ╚██████╔╝╚██████╗███████╗╚██████╔╝╚██████╔╝██████╔╝ ██║ ███████╗██║ ██║██║ ╚═╝ ██║██║██║ ╚████║██║ ██║███████╗ ███████╗██║
// ██║██████╔╝
// ╚══▀▀═╝ ╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚═╝ ╚═╝╚═════╝
//
//
// _ __ _ _
// (_) / _| | | | |
// ___ ___ _ ____ ___ ___ ___ | |_ ___ _ __ __| | _____ _____| | ___ _ __ ___ _
// __ ___
// / __|/ _ \ '__\ \ / / |/ __/ _ \ | _/ _ \| '__| / _` |/ _ \ \ / / _ \ |/ _ \| '_ \ / _ \
// '__/ __|
// \__ \ __/ | \ V /| | (_| __/ | || (_) | | | (_| | __/\ V / __/ | (_) | |_) | __/
// | \__
// |___/\___|_| \_/ |_|\___\___| |_| \___/|_| \__,_|\___| \_/ \___|_|\___/| .__/
// \___|_| |___/
// ______ ______ ______ ______ ______ ______ ______ ______ | |
// |______|______|______|______|______|______|______|______| |_|
//

#import "QCloudDeleteBucketPolicyRequest.h"
#import <QCloudCore/QCloudSignatureFields.h>
#import <QCloudCore/QCloudCore.h>
#import <QCloudCore/QCloudConfiguration_Private.h>

NS_ASSUME_NONNULL_BEGIN
@implementation QCloudDeleteBucketPolicyRequest
- (void)dealloc {
}
- (instancetype)init {
self = [super init];
if (!self) {
return nil;
}
return self;
}
- (void)configureReuqestSerializer:(QCloudRequestSerializer *)requestSerializer responseSerializer:(QCloudResponseSerializer *)responseSerializer {
NSArray *customRequestSerilizers = @[
QCloudURLFuseURIMethodASURLParamters,
QCloudURLFuseContentMD5Base64StyleHeaders,
];

NSArray *responseSerializers = @[
QCloudAcceptRespnseCodeBlock([NSSet setWithObjects:@(200), @(201), @(202), @(203), @(204), @(205), @(206), @(207), @(208), @(226), nil], nil),
QCloudResponseAppendHeadersSerializerBlock

];
[requestSerializer setSerializerBlocks:customRequestSerilizers];
[responseSerializer setSerializerBlocks:responseSerializers];

requestSerializer.HTTPMethod = @"delete";
}

- (BOOL)buildRequestData:(NSError *__autoreleasing *)error {
if (![super buildRequestData:error]) {
return NO;
}
if (!self.bucket || ([self.bucket isKindOfClass:NSString.class] && ((NSString *)self.bucket).length == 0)) {
if (error != NULL) {
*error = [NSError
qcloud_errorWithCode:QCloudNetworkErrorCodeParamterInvalid
message:[NSString stringWithFormat:
@"InvalidArgument:paramter[bucket] is invalid (nil), it must have some value. please check it"]];
return NO;
}
}
NSURL *__serverURL = [self.runOnService.configuration.endpoint serverURLWithBucket:self.bucket
appID:self.runOnService.configuration.appID
regionName:self.regionName];
self.requestData.serverURL = __serverURL.absoluteString;
[self.requestData setValue:__serverURL.host forHTTPHeaderField:@"Host"];
self.requestData.URIMethod = @"policy";
return YES;
}

- (QCloudSignatureFields *)signatureFields {
QCloudSignatureFields *fileds = [QCloudSignatureFields new];

return fileds;
}

@end
NS_ASSUME_NONNULL_END
Loading

0 comments on commit 774ec1f

Please sign in to comment.