@@ -214,6 +214,49 @@ open class Client : AlibabacloudOpenApi.Client {
214
214
return try await batchGetAcpConnectionTicketWithOptions ( request as! BatchGetAcpConnectionTicketRequest , runtime as! TeaUtils . RuntimeOptions )
215
215
}
216
216
217
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
218
+ public func changeCloudPhoneNodeWithOptions( _ request: ChangeCloudPhoneNodeRequest , _ runtime: TeaUtils . RuntimeOptions ) async throws -> ChangeCloudPhoneNodeResponse {
219
+ try TeaUtils . Client. validateModel ( request)
220
+ var query : [ String : Any ] = [ : ]
221
+ if ( !TeaUtils. Client. isUnset ( request. instanceType) ) {
222
+ query [ " InstanceType " ] = request. instanceType ?? " " ;
223
+ }
224
+ if ( !TeaUtils. Client. isUnset ( request. nodeId) ) {
225
+ query [ " NodeId " ] = request. nodeId ?? " " ;
226
+ }
227
+ if ( !TeaUtils. Client. isUnset ( request. phoneCount) ) {
228
+ query [ " PhoneCount " ] = request. phoneCount!;
229
+ }
230
+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
231
+ " query " : AlibabaCloudOpenApiUtil . Client. query ( query)
232
+ ] )
233
+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
234
+ " action " : " ChangeCloudPhoneNode " ,
235
+ " version " : " 2023-09-30 " ,
236
+ " protocol " : " HTTPS " ,
237
+ " pathname " : " / " ,
238
+ " method " : " POST " ,
239
+ " authType " : " AK " ,
240
+ " style " : " RPC " ,
241
+ " reqBodyType " : " formData " ,
242
+ " bodyType " : " json "
243
+ ] )
244
+ if ( TeaUtils . Client. isUnset ( self . _signatureVersion) || !TeaUtils. Client. equalString ( self . _signatureVersion, " v4 " ) ) {
245
+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
246
+ return Tea . TeaConverter. fromMap ( ChangeCloudPhoneNodeResponse ( ) , tmp)
247
+ }
248
+ else {
249
+ var tmp : [ String : Any ] = try await execute ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
250
+ return Tea . TeaConverter. fromMap ( ChangeCloudPhoneNodeResponse ( ) , tmp)
251
+ }
252
+ }
253
+
254
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
255
+ public func changeCloudPhoneNode( _ request: ChangeCloudPhoneNodeRequest ) async throws -> ChangeCloudPhoneNodeResponse {
256
+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
257
+ return try await changeCloudPhoneNodeWithOptions ( request as! ChangeCloudPhoneNodeRequest , runtime as! TeaUtils . RuntimeOptions )
258
+ }
259
+
217
260
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
218
261
public func checkResourceStockWithOptions( _ request: CheckResourceStockRequest , _ runtime: TeaUtils . RuntimeOptions ) async throws -> CheckResourceStockResponse {
219
262
try TeaUtils . Client. validateModel ( request)
@@ -1795,6 +1838,52 @@ open class Client : AlibabacloudOpenApi.Client {
1795
1838
return try await endCoordinationWithOptions ( request as! EndCoordinationRequest , runtime as! TeaUtils . RuntimeOptions )
1796
1839
}
1797
1840
1841
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1842
+ public func expandDataVolumeWithOptions( _ request: ExpandDataVolumeRequest , _ runtime: TeaUtils . RuntimeOptions ) async throws -> ExpandDataVolumeResponse {
1843
+ try TeaUtils . Client. validateModel ( request)
1844
+ var query : [ String : Any ] = [ : ]
1845
+ if ( !TeaUtils. Client. isUnset ( request. autoPay) ) {
1846
+ query [ " AutoPay " ] = request. autoPay!;
1847
+ }
1848
+ if ( !TeaUtils. Client. isUnset ( request. bizRegionId) ) {
1849
+ query [ " BizRegionId " ] = request. bizRegionId ?? " " ;
1850
+ }
1851
+ if ( !TeaUtils. Client. isUnset ( request. nodeIds) ) {
1852
+ query [ " NodeIds " ] = request. nodeIds ?? [ ] ;
1853
+ }
1854
+ if ( !TeaUtils. Client. isUnset ( request. shareDataVolume) ) {
1855
+ query [ " ShareDataVolume " ] = request. shareDataVolume!;
1856
+ }
1857
+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
1858
+ " query " : AlibabaCloudOpenApiUtil . Client. query ( query)
1859
+ ] )
1860
+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
1861
+ " action " : " ExpandDataVolume " ,
1862
+ " version " : " 2023-09-30 " ,
1863
+ " protocol " : " HTTPS " ,
1864
+ " pathname " : " / " ,
1865
+ " method " : " POST " ,
1866
+ " authType " : " AK " ,
1867
+ " style " : " RPC " ,
1868
+ " reqBodyType " : " formData " ,
1869
+ " bodyType " : " json "
1870
+ ] )
1871
+ if ( TeaUtils . Client. isUnset ( self . _signatureVersion) || !TeaUtils. Client. equalString ( self . _signatureVersion, " v4 " ) ) {
1872
+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
1873
+ return Tea . TeaConverter. fromMap ( ExpandDataVolumeResponse ( ) , tmp)
1874
+ }
1875
+ else {
1876
+ var tmp : [ String : Any ] = try await execute ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
1877
+ return Tea . TeaConverter. fromMap ( ExpandDataVolumeResponse ( ) , tmp)
1878
+ }
1879
+ }
1880
+
1881
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1882
+ public func expandDataVolume( _ request: ExpandDataVolumeRequest ) async throws -> ExpandDataVolumeResponse {
1883
+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
1884
+ return try await expandDataVolumeWithOptions ( request as! ExpandDataVolumeRequest , runtime as! TeaUtils . RuntimeOptions )
1885
+ }
1886
+
1798
1887
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1799
1888
public func fetchFileWithOptions( _ request: FetchFileRequest , _ runtime: TeaUtils . RuntimeOptions ) async throws -> FetchFileResponse {
1800
1889
try TeaUtils . Client. validateModel ( request)
0 commit comments