@@ -301,6 +301,41 @@ open class Client : AlibabacloudOpenApi.Client {
301
301
return try await deleteProjectWithOptions ( name as! String , request as! DeleteProjectRequest , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
302
302
}
303
303
304
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
305
+ public func deployEnvironmentWithOptions( _ projectName: String , _ name: String , _ request: DeployEnvironmentRequest , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> DeployEnvironmentResponse {
306
+ try TeaUtils . Client. validateModel ( request)
307
+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
308
+ " headers " : headers as! [ String : String ] ,
309
+ " body " : AlibabaCloudOpenApiUtil . Client. parseToMap ( request. body)
310
+ ] )
311
+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
312
+ " action " : " DeployEnvironment " ,
313
+ " version " : " 2023-07-14 " ,
314
+ " protocol " : " HTTPS " ,
315
+ " pathname " : " /2023-07-14/projects/ " + ( AlibabaCloudOpenApiUtil . Client. getEncodeParam ( projectName) ) + " /environments/ " + ( AlibabaCloudOpenApiUtil . Client. getEncodeParam ( name) ) + " /deploy " ,
316
+ " method " : " PATCH " ,
317
+ " authType " : " AK " ,
318
+ " style " : " ROA " ,
319
+ " reqBodyType " : " json " ,
320
+ " bodyType " : " json "
321
+ ] )
322
+ if ( TeaUtils . Client. isUnset ( self . _signatureVersion) || !TeaUtils. Client. equalString ( self . _signatureVersion, " v4 " ) ) {
323
+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
324
+ return Tea . TeaConverter. fromMap ( DeployEnvironmentResponse ( ) , tmp)
325
+ }
326
+ else {
327
+ var tmp : [ String : Any ] = try await execute ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
328
+ return Tea . TeaConverter. fromMap ( DeployEnvironmentResponse ( ) , tmp)
329
+ }
330
+ }
331
+
332
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
333
+ public func deployEnvironment( _ projectName: String , _ name: String , _ request: DeployEnvironmentRequest ) async throws -> DeployEnvironmentResponse {
334
+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
335
+ var headers : [ String : String ] = [ : ]
336
+ return try await deployEnvironmentWithOptions ( projectName as! String , name as! String , request as! DeployEnvironmentRequest , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
337
+ }
338
+
304
339
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
305
340
public func getEnvironmentWithOptions( _ projectName: String , _ name: String , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> GetEnvironmentResponse {
306
341
var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
@@ -334,6 +369,39 @@ open class Client : AlibabacloudOpenApi.Client {
334
369
return try await getEnvironmentWithOptions ( projectName as! String , name as! String , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
335
370
}
336
371
372
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
373
+ public func getEnvironmentDeploymentWithOptions( _ name: String , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> GetEnvironmentDeploymentResponse {
374
+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
375
+ " headers " : headers as! [ String : String ]
376
+ ] )
377
+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
378
+ " action " : " GetEnvironmentDeployment " ,
379
+ " version " : " 2023-07-14 " ,
380
+ " protocol " : " HTTPS " ,
381
+ " pathname " : " /2023-07-14/environmentdeployments/ " + ( AlibabaCloudOpenApiUtil . Client. getEncodeParam ( name) ) ,
382
+ " method " : " GET " ,
383
+ " authType " : " AK " ,
384
+ " style " : " ROA " ,
385
+ " reqBodyType " : " json " ,
386
+ " bodyType " : " json "
387
+ ] )
388
+ if ( TeaUtils . Client. isUnset ( self . _signatureVersion) || !TeaUtils. Client. equalString ( self . _signatureVersion, " v4 " ) ) {
389
+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
390
+ return Tea . TeaConverter. fromMap ( GetEnvironmentDeploymentResponse ( ) , tmp)
391
+ }
392
+ else {
393
+ var tmp : [ String : Any ] = try await execute ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
394
+ return Tea . TeaConverter. fromMap ( GetEnvironmentDeploymentResponse ( ) , tmp)
395
+ }
396
+ }
397
+
398
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
399
+ public func getEnvironmentDeployment( _ name: String ) async throws -> GetEnvironmentDeploymentResponse {
400
+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
401
+ var headers : [ String : String ] = [ : ]
402
+ return try await getEnvironmentDeploymentWithOptions ( name as! String , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
403
+ }
404
+
337
405
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
338
406
public func getPipelineWithOptions( _ name: String , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> GetPipelineResponse {
339
407
var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
0 commit comments