@@ -255,6 +255,61 @@ open class Client : AlibabacloudOpenApi.Client {
255
255
return try await createDynamicRouteWithOptions ( request as! CreateDynamicRouteRequest , runtime as! TeaUtils . RuntimeOptions )
256
256
}
257
257
258
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
259
+ public func createEnterpriseAcceleratePolicyWithOptions( _ request: CreateEnterpriseAcceleratePolicyRequest , _ runtime: TeaUtils . RuntimeOptions ) async throws -> CreateEnterpriseAcceleratePolicyResponse {
260
+ try TeaUtils . Client. validateModel ( request)
261
+ var body : [ String : Any ] = [ : ]
262
+ if ( !TeaUtils. Client. isUnset ( request. accelerationType) ) {
263
+ body [ " AccelerationType " ] = request. accelerationType ?? " " ;
264
+ }
265
+ if ( !TeaUtils. Client. isUnset ( request. description_) ) {
266
+ body [ " Description " ] = request. description_ ?? " " ;
267
+ }
268
+ if ( !TeaUtils. Client. isUnset ( request. name) ) {
269
+ body [ " Name " ] = request. name ?? " " ;
270
+ }
271
+ if ( !TeaUtils. Client. isUnset ( request. priority) ) {
272
+ body [ " Priority " ] = request. priority ?? " " ;
273
+ }
274
+ if ( !TeaUtils. Client. isUnset ( request. showInClient) ) {
275
+ body [ " ShowInClient " ] = request. showInClient!;
276
+ }
277
+ if ( !TeaUtils. Client. isUnset ( request. upstreamHost) ) {
278
+ body [ " UpstreamHost " ] = request. upstreamHost ?? " " ;
279
+ }
280
+ if ( !TeaUtils. Client. isUnset ( request. upstreamPort) ) {
281
+ body [ " UpstreamPort " ] = request. upstreamPort!;
282
+ }
283
+ if ( !TeaUtils. Client. isUnset ( request. upstreamType) ) {
284
+ body [ " UpstreamType " ] = request. upstreamType ?? " " ;
285
+ }
286
+ if ( !TeaUtils. Client. isUnset ( request. userAttributeGroup) ) {
287
+ body [ " UserAttributeGroup " ] = request. userAttributeGroup ?? " " ;
288
+ }
289
+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
290
+ " body " : AlibabaCloudOpenApiUtil . Client. parseToMap ( body)
291
+ ] )
292
+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
293
+ " action " : " CreateEnterpriseAcceleratePolicy " ,
294
+ " version " : " 2023-01-20 " ,
295
+ " protocol " : " HTTPS " ,
296
+ " pathname " : " / " ,
297
+ " method " : " POST " ,
298
+ " authType " : " AK " ,
299
+ " style " : " RPC " ,
300
+ " reqBodyType " : " formData " ,
301
+ " bodyType " : " json "
302
+ ] )
303
+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
304
+ return Tea . TeaConverter. fromMap ( CreateEnterpriseAcceleratePolicyResponse ( ) , tmp)
305
+ }
306
+
307
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
308
+ public func createEnterpriseAcceleratePolicy( _ request: CreateEnterpriseAcceleratePolicyRequest ) async throws -> CreateEnterpriseAcceleratePolicyResponse {
309
+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
310
+ return try await createEnterpriseAcceleratePolicyWithOptions ( request as! CreateEnterpriseAcceleratePolicyRequest , runtime as! TeaUtils . RuntimeOptions )
311
+ }
312
+
258
313
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
259
314
public func createIdpDepartmentWithOptions( _ request: CreateIdpDepartmentRequest , _ runtime: TeaUtils . RuntimeOptions ) async throws -> CreateIdpDepartmentResponse {
260
315
try TeaUtils . Client. validateModel ( request)
@@ -924,6 +979,37 @@ open class Client : AlibabacloudOpenApi.Client {
924
979
return try await deleteIdpDepartmentWithOptions ( request as! DeleteIdpDepartmentRequest , runtime as! TeaUtils . RuntimeOptions )
925
980
}
926
981
982
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
983
+ public func deleteOtpConfigWithOptions( _ request: DeleteOtpConfigRequest , _ runtime: TeaUtils . RuntimeOptions ) async throws -> DeleteOtpConfigResponse {
984
+ try TeaUtils . Client. validateModel ( request)
985
+ var body : [ String : Any ] = [ : ]
986
+ if ( !TeaUtils. Client. isUnset ( request. username) ) {
987
+ body [ " Username " ] = request. username ?? " " ;
988
+ }
989
+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
990
+ " body " : AlibabaCloudOpenApiUtil . Client. parseToMap ( body)
991
+ ] )
992
+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
993
+ " action " : " DeleteOtpConfig " ,
994
+ " version " : " 2023-01-20 " ,
995
+ " protocol " : " HTTPS " ,
996
+ " pathname " : " / " ,
997
+ " method " : " POST " ,
998
+ " authType " : " AK " ,
999
+ " style " : " RPC " ,
1000
+ " reqBodyType " : " formData " ,
1001
+ " bodyType " : " json "
1002
+ ] )
1003
+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
1004
+ return Tea . TeaConverter. fromMap ( DeleteOtpConfigResponse ( ) , tmp)
1005
+ }
1006
+
1007
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1008
+ public func deleteOtpConfig( _ request: DeleteOtpConfigRequest ) async throws -> DeleteOtpConfigResponse {
1009
+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
1010
+ return try await deleteOtpConfigWithOptions ( request as! DeleteOtpConfigRequest , runtime as! TeaUtils . RuntimeOptions )
1011
+ }
1012
+
927
1013
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
928
1014
public func deletePrivateAccessApplicationWithOptions( _ request: DeletePrivateAccessApplicationRequest , _ runtime: TeaUtils . RuntimeOptions ) async throws -> DeletePrivateAccessApplicationResponse {
929
1015
try TeaUtils . Client. validateModel ( request)
0 commit comments