@@ -23,6 +23,48 @@ open class Client : AlibabacloudOpenApi.Client {
23
23
return try AlibabacloudEndpointUtil . Client. getEndpointRules ( productId, regionId, endpointRule, network, suffix)
24
24
}
25
25
26
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
27
+ public func activateConnectionWithOptions( _ name: String , _ request: ActivateConnectionRequest , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> ActivateConnectionResponse {
28
+ try TeaUtils . Client. validateModel ( request)
29
+ var body : [ String : Any ] = [ : ]
30
+ if ( !TeaUtils. Client. isUnset ( request. account) ) {
31
+ body [ " account " ] = request. account!;
32
+ }
33
+ if ( !TeaUtils. Client. isUnset ( request. credential) ) {
34
+ body [ " credential " ] = request. credential!;
35
+ }
36
+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
37
+ " headers " : headers as! [ String : String ] ,
38
+ " body " : AlibabaCloudOpenApiUtil . Client. parseToMap ( body)
39
+ ] )
40
+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
41
+ " action " : " ActivateConnection " ,
42
+ " version " : " 2023-07-14 " ,
43
+ " protocol " : " HTTPS " ,
44
+ " pathname " : " /2023-07-14/connections/ " + ( AlibabaCloudOpenApiUtil . Client. getEncodeParam ( name) ) + " /activate " ,
45
+ " method " : " PATCH " ,
46
+ " authType " : " AK " ,
47
+ " style " : " ROA " ,
48
+ " reqBodyType " : " json " ,
49
+ " bodyType " : " json "
50
+ ] )
51
+ if ( TeaUtils . Client. isUnset ( self . _signatureVersion) || !TeaUtils. Client. equalString ( self . _signatureVersion, " v4 " ) ) {
52
+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
53
+ return Tea . TeaConverter. fromMap ( ActivateConnectionResponse ( ) , tmp)
54
+ }
55
+ else {
56
+ var tmp : [ String : Any ] = try await execute ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
57
+ return Tea . TeaConverter. fromMap ( ActivateConnectionResponse ( ) , tmp)
58
+ }
59
+ }
60
+
61
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
62
+ public func activateConnection( _ name: String , _ request: ActivateConnectionRequest ) async throws -> ActivateConnectionResponse {
63
+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
64
+ var headers : [ String : String ] = [ : ]
65
+ return try await activateConnectionWithOptions ( name as! String , request as! ActivateConnectionRequest , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
66
+ }
67
+
26
68
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
27
69
public func cancelPipelineWithOptions( _ name: String , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> CancelPipelineResponse {
28
70
var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
@@ -297,6 +339,45 @@ open class Client : AlibabacloudOpenApi.Client {
297
339
return try await deleteArtifactWithOptions ( name as! String , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
298
340
}
299
341
342
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
343
+ public func deleteConnectionWithOptions( _ name: String , _ request: DeleteConnectionRequest , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> DeleteConnectionResponse {
344
+ try TeaUtils . Client. validateModel ( request)
345
+ var query : [ String : Any ] = [ : ]
346
+ if ( !TeaUtils. Client. isUnset ( request. force) ) {
347
+ query [ " force " ] = request. force!;
348
+ }
349
+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
350
+ " headers " : headers as! [ String : String ] ,
351
+ " query " : AlibabaCloudOpenApiUtil . Client. query ( query)
352
+ ] )
353
+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
354
+ " action " : " DeleteConnection " ,
355
+ " version " : " 2023-07-14 " ,
356
+ " protocol " : " HTTPS " ,
357
+ " pathname " : " /2023-07-14/connections/ " + ( AlibabaCloudOpenApiUtil . Client. getEncodeParam ( name) ) ,
358
+ " method " : " DELETE " ,
359
+ " authType " : " AK " ,
360
+ " style " : " ROA " ,
361
+ " reqBodyType " : " json " ,
362
+ " bodyType " : " json "
363
+ ] )
364
+ if ( TeaUtils . Client. isUnset ( self . _signatureVersion) || !TeaUtils. Client. equalString ( self . _signatureVersion, " v4 " ) ) {
365
+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
366
+ return Tea . TeaConverter. fromMap ( DeleteConnectionResponse ( ) , tmp)
367
+ }
368
+ else {
369
+ var tmp : [ String : Any ] = try await execute ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
370
+ return Tea . TeaConverter. fromMap ( DeleteConnectionResponse ( ) , tmp)
371
+ }
372
+ }
373
+
374
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
375
+ public func deleteConnection( _ name: String , _ request: DeleteConnectionRequest ) async throws -> DeleteConnectionResponse {
376
+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
377
+ var headers : [ String : String ] = [ : ]
378
+ return try await deleteConnectionWithOptions ( name as! String , request as! DeleteConnectionRequest , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
379
+ }
380
+
300
381
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
301
382
public func deleteEnvironmentWithOptions( _ projectName: String , _ name: String , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> DeleteEnvironmentResponse {
302
383
var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
@@ -470,6 +551,39 @@ open class Client : AlibabacloudOpenApi.Client {
470
551
return try await fetchArtifactTempBucketTokenWithOptions ( headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
471
552
}
472
553
554
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
555
+ public func fetchConnectionCredentialWithOptions( _ name: String , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> FetchConnectionCredentialResponse {
556
+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
557
+ " headers " : headers as! [ String : String ]
558
+ ] )
559
+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
560
+ " action " : " FetchConnectionCredential " ,
561
+ " version " : " 2023-07-14 " ,
562
+ " protocol " : " HTTPS " ,
563
+ " pathname " : " /2023-07-14/connections/ " + ( AlibabaCloudOpenApiUtil . Client. getEncodeParam ( name) ) + " /fetchCredential " ,
564
+ " method " : " GET " ,
565
+ " authType " : " AK " ,
566
+ " style " : " ROA " ,
567
+ " reqBodyType " : " json " ,
568
+ " bodyType " : " json "
569
+ ] )
570
+ if ( TeaUtils . Client. isUnset ( self . _signatureVersion) || !TeaUtils. Client. equalString ( self . _signatureVersion, " v4 " ) ) {
571
+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
572
+ return Tea . TeaConverter. fromMap ( FetchConnectionCredentialResponse ( ) , tmp)
573
+ }
574
+ else {
575
+ var tmp : [ String : Any ] = try await execute ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
576
+ return Tea . TeaConverter. fromMap ( FetchConnectionCredentialResponse ( ) , tmp)
577
+ }
578
+ }
579
+
580
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
581
+ public func fetchConnectionCredential( _ name: String ) async throws -> FetchConnectionCredentialResponse {
582
+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
583
+ var headers : [ String : String ] = [ : ]
584
+ return try await fetchConnectionCredentialWithOptions ( name as! String , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
585
+ }
586
+
473
587
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
474
588
public func getArtifactWithOptions( _ name: String , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> GetArtifactResponse {
475
589
var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
@@ -734,6 +848,59 @@ open class Client : AlibabacloudOpenApi.Client {
734
848
return try await getTaskWithOptions ( name as! String , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
735
849
}
736
850
851
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
852
+ public func listConnectionsWithOptions( _ tmpReq: ListConnectionsRequest , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> ListConnectionsResponse {
853
+ try TeaUtils . Client. validateModel ( tmpReq)
854
+ var request : ListConnectionsShrinkRequest = ListConnectionsShrinkRequest ( [ : ] )
855
+ AlibabaCloudOpenApiUtil . Client. convert ( tmpReq, request)
856
+ if ( !TeaUtils. Client. isUnset ( tmpReq. labelSelector) ) {
857
+ request. labelSelectorShrink = AlibabaCloudOpenApiUtil . Client. arrayToStringWithSpecifiedStyle ( tmpReq. labelSelector, " labelSelector " , " simple " )
858
+ }
859
+ var query : [ String : Any ] = [ : ]
860
+ if ( !TeaUtils. Client. isUnset ( request. keyword) ) {
861
+ query [ " keyword " ] = request. keyword ?? " " ;
862
+ }
863
+ if ( !TeaUtils. Client. isUnset ( request. labelSelectorShrink) ) {
864
+ query [ " labelSelector " ] = request. labelSelectorShrink ?? " " ;
865
+ }
866
+ if ( !TeaUtils. Client. isUnset ( request. pageNumber) ) {
867
+ query [ " pageNumber " ] = request. pageNumber!;
868
+ }
869
+ if ( !TeaUtils. Client. isUnset ( request. pageSize) ) {
870
+ query [ " pageSize " ] = request. pageSize!;
871
+ }
872
+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
873
+ " headers " : headers as! [ String : String ] ,
874
+ " query " : AlibabaCloudOpenApiUtil . Client. query ( query)
875
+ ] )
876
+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
877
+ " action " : " ListConnections " ,
878
+ " version " : " 2023-07-14 " ,
879
+ " protocol " : " HTTPS " ,
880
+ " pathname " : " /2023-07-14/connections " ,
881
+ " method " : " GET " ,
882
+ " authType " : " AK " ,
883
+ " style " : " ROA " ,
884
+ " reqBodyType " : " json " ,
885
+ " bodyType " : " json "
886
+ ] )
887
+ if ( TeaUtils . Client. isUnset ( self . _signatureVersion) || !TeaUtils. Client. equalString ( self . _signatureVersion, " v4 " ) ) {
888
+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
889
+ return Tea . TeaConverter. fromMap ( ListConnectionsResponse ( ) , tmp)
890
+ }
891
+ else {
892
+ var tmp : [ String : Any ] = try await execute ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
893
+ return Tea . TeaConverter. fromMap ( ListConnectionsResponse ( ) , tmp)
894
+ }
895
+ }
896
+
897
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
898
+ public func listConnections( _ request: ListConnectionsRequest ) async throws -> ListConnectionsResponse {
899
+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
900
+ var headers : [ String : String ] = [ : ]
901
+ return try await listConnectionsWithOptions ( request as! ListConnectionsRequest , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
902
+ }
903
+
737
904
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
738
905
public func listEnvironmentsWithOptions( _ projectName: String , _ tmpReq: ListEnvironmentsRequest , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> ListEnvironmentsResponse {
739
906
try TeaUtils . Client. validateModel ( tmpReq)
0 commit comments