@@ -48,6 +48,10 @@ public class CreateImagePipelineRequest extends RpcAcsRequest<CreateImagePipelin
48
48
49
49
private List <Tag > tags ;
50
50
51
+ private AdvancedOptions advancedOptions ;
52
+
53
+ private String nvmeSupport ;
54
+
51
55
private String resourceOwnerAccount ;
52
56
53
57
private String ownerAccount ;
@@ -70,6 +74,8 @@ public class CreateImagePipelineRequest extends RpcAcsRequest<CreateImagePipelin
70
74
71
75
private String buildContent ;
72
76
77
+ private ImportImageOptions importImageOptions ;
78
+
73
79
private String testContent ;
74
80
public CreateImagePipelineRequest () {
75
81
super ("Ecs" , "2014-05-26" , "CreateImagePipeline" , "ecs" );
@@ -206,6 +212,31 @@ public void setTags(List<Tag> tags) {
206
212
}
207
213
}
208
214
215
+ public AdvancedOptions getAdvancedOptions () {
216
+ return this .advancedOptions ;
217
+ }
218
+
219
+ public void setAdvancedOptions (AdvancedOptions advancedOptions ) {
220
+ this .advancedOptions = advancedOptions ;
221
+ if (advancedOptions != null ) {
222
+
223
+ putQueryParameter ("AdvancedOptions.RetainCloudAssistant" , advancedOptions .getRetainCloudAssistant ());
224
+ putQueryParameter ("AdvancedOptions.SkipBuildImage" , advancedOptions .getSkipBuildImage ());
225
+ putQueryParameter ("AdvancedOptions.SkipCheckImage" , advancedOptions .getSkipCheckImage ());
226
+ }
227
+ }
228
+
229
+ public String getNvmeSupport () {
230
+ return this .nvmeSupport ;
231
+ }
232
+
233
+ public void setNvmeSupport (String nvmeSupport ) {
234
+ this .nvmeSupport = nvmeSupport ;
235
+ if (nvmeSupport != null ){
236
+ putQueryParameter ("NvmeSupport" , nvmeSupport );
237
+ }
238
+ }
239
+
209
240
public String getResourceOwnerAccount () {
210
241
return this .resourceOwnerAccount ;
211
242
}
@@ -329,6 +360,38 @@ public void setBuildContent(String buildContent) {
329
360
}
330
361
}
331
362
363
+ public ImportImageOptions getImportImageOptions () {
364
+ return this .importImageOptions ;
365
+ }
366
+
367
+ public void setImportImageOptions (ImportImageOptions importImageOptions ) {
368
+ this .importImageOptions = importImageOptions ;
369
+ if (importImageOptions != null ) {
370
+
371
+ putQueryParameter ("ImportImageOptions.Architecture" , importImageOptions .getArchitecture ());
372
+ putQueryParameter ("ImportImageOptions.OSType" , importImageOptions .getOSType ());
373
+ putQueryParameter ("ImportImageOptions.Platform" , importImageOptions .getPlatform ());
374
+ putQueryParameter ("ImportImageOptions.BootMode" , importImageOptions .getBootMode ());
375
+ putQueryParameter ("ImportImageOptions.LicenseType" , importImageOptions .getLicenseType ());
376
+ if (importImageOptions .getDiskDeviceMappings () != null ) {
377
+ for (int depth1 = 0 ; depth1 < importImageOptions .getDiskDeviceMappings ().size (); depth1 ++) {
378
+ if (importImageOptions .getDiskDeviceMappings ().get (depth1 ) != null ) {
379
+
380
+ putQueryParameter ("ImportImageOptions.DiskDeviceMappings." + (depth1 + 1 ) + ".OSSBucket" , importImageOptions .getDiskDeviceMappings ().get (depth1 ).getOSSBucket ());
381
+ putQueryParameter ("ImportImageOptions.DiskDeviceMappings." + (depth1 + 1 ) + ".OSSObject" , importImageOptions .getDiskDeviceMappings ().get (depth1 ).getOSSObject ());
382
+ putQueryParameter ("ImportImageOptions.DiskDeviceMappings." + (depth1 + 1 ) + ".Format" , importImageOptions .getDiskDeviceMappings ().get (depth1 ).getFormat ());
383
+ putQueryParameter ("ImportImageOptions.DiskDeviceMappings." + (depth1 + 1 ) + ".DiskImageSize" , importImageOptions .getDiskDeviceMappings ().get (depth1 ).getDiskImageSize ());
384
+ }
385
+ }
386
+ }
387
+ if (importImageOptions .getFeatures () != null ) {
388
+
389
+ putQueryParameter ("ImportImageOptions.Features.NvmeSupport" , importImageOptions .getFeatures ().getNvmeSupport ());
390
+ }
391
+ putQueryParameter ("ImportImageOptions.RetainImportedImage" , importImageOptions .getRetainImportedImage ());
392
+ }
393
+ }
394
+
332
395
public String getTestContent () {
333
396
return this .testContent ;
334
397
}
@@ -361,6 +424,178 @@ public String getValue() {
361
424
public void setValue (String value ) {
362
425
this .value = value ;
363
426
}
427
+ }
428
+
429
+ public static class AdvancedOptions {
430
+
431
+ private Boolean retainCloudAssistant ;
432
+
433
+ private Boolean skipBuildImage ;
434
+
435
+ private Boolean skipCheckImage ;
436
+
437
+ public Boolean getRetainCloudAssistant () {
438
+ return this .retainCloudAssistant ;
439
+ }
440
+
441
+ public void setRetainCloudAssistant (Boolean retainCloudAssistant ) {
442
+ this .retainCloudAssistant = retainCloudAssistant ;
443
+ }
444
+
445
+ public Boolean getSkipBuildImage () {
446
+ return this .skipBuildImage ;
447
+ }
448
+
449
+ public void setSkipBuildImage (Boolean skipBuildImage ) {
450
+ this .skipBuildImage = skipBuildImage ;
451
+ }
452
+
453
+ public Boolean getSkipCheckImage () {
454
+ return this .skipCheckImage ;
455
+ }
456
+
457
+ public void setSkipCheckImage (Boolean skipCheckImage ) {
458
+ this .skipCheckImage = skipCheckImage ;
459
+ }
460
+ }
461
+
462
+ public static class ImportImageOptions {
463
+
464
+ private String architecture ;
465
+
466
+ private String oSType ;
467
+
468
+ private String platform ;
469
+
470
+ private String bootMode ;
471
+
472
+ private String licenseType ;
473
+
474
+ private List <DiskDeviceMappingsItem > diskDeviceMappings ;
475
+
476
+ private Features features ;
477
+
478
+ private Boolean retainImportedImage ;
479
+
480
+ public String getArchitecture () {
481
+ return this .architecture ;
482
+ }
483
+
484
+ public void setArchitecture (String architecture ) {
485
+ this .architecture = architecture ;
486
+ }
487
+
488
+ public String getOSType () {
489
+ return this .oSType ;
490
+ }
491
+
492
+ public void setOSType (String oSType ) {
493
+ this .oSType = oSType ;
494
+ }
495
+
496
+ public String getPlatform () {
497
+ return this .platform ;
498
+ }
499
+
500
+ public void setPlatform (String platform ) {
501
+ this .platform = platform ;
502
+ }
503
+
504
+ public String getBootMode () {
505
+ return this .bootMode ;
506
+ }
507
+
508
+ public void setBootMode (String bootMode ) {
509
+ this .bootMode = bootMode ;
510
+ }
511
+
512
+ public String getLicenseType () {
513
+ return this .licenseType ;
514
+ }
515
+
516
+ public void setLicenseType (String licenseType ) {
517
+ this .licenseType = licenseType ;
518
+ }
519
+
520
+ public List <DiskDeviceMappingsItem > getDiskDeviceMappings () {
521
+ return this .diskDeviceMappings ;
522
+ }
523
+
524
+ public void setDiskDeviceMappings (List <DiskDeviceMappingsItem > diskDeviceMappings ) {
525
+ this .diskDeviceMappings = diskDeviceMappings ;
526
+ }
527
+
528
+ public Features getFeatures () {
529
+ return this .features ;
530
+ }
531
+
532
+ public void setFeatures (Features features ) {
533
+ this .features = features ;
534
+ }
535
+
536
+ public Boolean getRetainImportedImage () {
537
+ return this .retainImportedImage ;
538
+ }
539
+
540
+ public void setRetainImportedImage (Boolean retainImportedImage ) {
541
+ this .retainImportedImage = retainImportedImage ;
542
+ }
543
+
544
+ public static class DiskDeviceMappingsItem {
545
+
546
+ private String oSSBucket ;
547
+
548
+ private String oSSObject ;
549
+
550
+ private String format ;
551
+
552
+ private Integer diskImageSize ;
553
+
554
+ public String getOSSBucket () {
555
+ return this .oSSBucket ;
556
+ }
557
+
558
+ public void setOSSBucket (String oSSBucket ) {
559
+ this .oSSBucket = oSSBucket ;
560
+ }
561
+
562
+ public String getOSSObject () {
563
+ return this .oSSObject ;
564
+ }
565
+
566
+ public void setOSSObject (String oSSObject ) {
567
+ this .oSSObject = oSSObject ;
568
+ }
569
+
570
+ public String getFormat () {
571
+ return this .format ;
572
+ }
573
+
574
+ public void setFormat (String format ) {
575
+ this .format = format ;
576
+ }
577
+
578
+ public Integer getDiskImageSize () {
579
+ return this .diskImageSize ;
580
+ }
581
+
582
+ public void setDiskImageSize (Integer diskImageSize ) {
583
+ this .diskImageSize = diskImageSize ;
584
+ }
585
+ }
586
+
587
+ public static class Features {
588
+
589
+ private String nvmeSupport ;
590
+
591
+ public String getNvmeSupport () {
592
+ return this .nvmeSupport ;
593
+ }
594
+
595
+ public void setNvmeSupport (String nvmeSupport ) {
596
+ this .nvmeSupport = nvmeSupport ;
597
+ }
598
+ }
364
599
}
365
600
366
601
@ Override
0 commit comments