@alicloud/polardb20170801 8.2.3 → 8.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +2 -2
- package/dist/client.js +14 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateApplicationRequest.d.ts +177 -24
- package/dist/models/CreateApplicationRequest.js +73 -1
- package/dist/models/CreateApplicationRequest.js.map +1 -1
- package/dist/models/CreateApplicationResponseBody.d.ts +1 -1
- package/dist/models/CreateApplicationShrinkRequest.d.ts +32 -15
- package/dist/models/CreateApplicationShrinkRequest.js +4 -0
- package/dist/models/CreateApplicationShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +2 -0
- package/dist/models/model.js +51 -47
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +18 -2
- package/src/models/CreateApplicationRequest.ts +231 -24
- package/src/models/CreateApplicationResponseBody.ts +1 -1
- package/src/models/CreateApplicationShrinkRequest.ts +36 -15
- package/src/models/model.ts +2 -0
|
@@ -2,10 +2,90 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class CreateApplicationRequestAgenticDBBranchSpec extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The AgenticDB branch ID.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* br-9054b3b7649e4c0d977bd0df37
|
|
12
|
+
*/
|
|
13
|
+
branchId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The AgenticDB cluster ID.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* pagc-2zea920mcvd5o87
|
|
20
|
+
*/
|
|
21
|
+
DBClusterId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The ID of the source application.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* pa-source
|
|
28
|
+
*/
|
|
29
|
+
forkFromApplicationId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* Specifies whether to create the application based on a specified AgenticDB branch.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* true
|
|
36
|
+
*/
|
|
37
|
+
forkFromBranch?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The AgenticDB project ID.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* proj-d7849d0050664c758af795d468
|
|
44
|
+
*/
|
|
45
|
+
projectId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The AgenticDB tenant ID.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* t-cfc2d7df0e59439681f0087f51
|
|
52
|
+
*/
|
|
53
|
+
tenantId?: string;
|
|
54
|
+
static names(): { [key: string]: string } {
|
|
55
|
+
return {
|
|
56
|
+
branchId: 'BranchId',
|
|
57
|
+
DBClusterId: 'DBClusterId',
|
|
58
|
+
forkFromApplicationId: 'ForkFromApplicationId',
|
|
59
|
+
forkFromBranch: 'ForkFromBranch',
|
|
60
|
+
projectId: 'ProjectId',
|
|
61
|
+
tenantId: 'TenantId',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static types(): { [key: string]: any } {
|
|
66
|
+
return {
|
|
67
|
+
branchId: 'string',
|
|
68
|
+
DBClusterId: 'string',
|
|
69
|
+
forkFromApplicationId: 'string',
|
|
70
|
+
forkFromBranch: 'boolean',
|
|
71
|
+
projectId: 'string',
|
|
72
|
+
tenantId: 'string',
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
validate() {
|
|
77
|
+
super.validate();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
constructor(map?: { [key: string]: any }) {
|
|
81
|
+
super(map);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
5
85
|
export class CreateApplicationRequestComponents extends $dara.Model {
|
|
6
86
|
/**
|
|
7
87
|
* @remarks
|
|
8
|
-
* The
|
|
88
|
+
* The specification of the application subcomponent.
|
|
9
89
|
*
|
|
10
90
|
* @example
|
|
11
91
|
* polar.app.g2.medium
|
|
@@ -13,7 +93,7 @@ export class CreateApplicationRequestComponents extends $dara.Model {
|
|
|
13
93
|
componentClass?: string;
|
|
14
94
|
/**
|
|
15
95
|
* @remarks
|
|
16
|
-
* The maximum number of application
|
|
96
|
+
* The maximum number of replicas for the application subcomponent with the same specification. Default value: the value of ComponentReplica.
|
|
17
97
|
*
|
|
18
98
|
* - Only raycluster supports this parameter.
|
|
19
99
|
*
|
|
@@ -66,7 +146,7 @@ export class CreateApplicationRequestComponents extends $dara.Model {
|
|
|
66
146
|
scaleMin?: string;
|
|
67
147
|
/**
|
|
68
148
|
* @remarks
|
|
69
|
-
* The list of security groups for the application subcomponent
|
|
149
|
+
* The list of security groups for the application subcomponent, separated by commas (,).
|
|
70
150
|
*
|
|
71
151
|
* @example
|
|
72
152
|
* sg-********************
|
|
@@ -82,7 +162,7 @@ export class CreateApplicationRequestComponents extends $dara.Model {
|
|
|
82
162
|
securityIPArrayName?: string;
|
|
83
163
|
/**
|
|
84
164
|
* @remarks
|
|
85
|
-
* The whitelist IP addresses of the application subcomponent
|
|
165
|
+
* The whitelist IP addresses of the application subcomponent, separated by commas (,).
|
|
86
166
|
*
|
|
87
167
|
* @example
|
|
88
168
|
* 127.0.0.1
|
|
@@ -138,7 +218,7 @@ export class CreateApplicationRequestComponents extends $dara.Model {
|
|
|
138
218
|
export class CreateApplicationRequestDnatEntries extends $dara.Model {
|
|
139
219
|
/**
|
|
140
220
|
* @remarks
|
|
141
|
-
* The frontend port. This parameter is optional. If not specified, the
|
|
221
|
+
* The frontend port. This parameter is optional. If not specified, the system automatically assigns a port that does not conflict with ports already in use on the gateway. You can query the assignment result by calling the DescribeApplicationAttribute operation.
|
|
142
222
|
*
|
|
143
223
|
* @example
|
|
144
224
|
* 10001
|
|
@@ -228,7 +308,7 @@ export class CreateApplicationRequestKnowledgeApplicationSpec extends $dara.Mode
|
|
|
228
308
|
dbPassword?: string;
|
|
229
309
|
/**
|
|
230
310
|
* @remarks
|
|
231
|
-
* Required for knowledge applications. The
|
|
311
|
+
* Required for knowledge applications. The LLM model name, such as qwen3-max.
|
|
232
312
|
*/
|
|
233
313
|
llmModel?: string;
|
|
234
314
|
static names(): { [key: string]: string } {
|
|
@@ -283,7 +363,7 @@ export class CreateApplicationRequestMemApplicationSpec extends $dara.Model {
|
|
|
283
363
|
dbUser?: string;
|
|
284
364
|
/**
|
|
285
365
|
* @remarks
|
|
286
|
-
* Required for mem0 applications. The
|
|
366
|
+
* Required for mem0 applications. The embedder model name, such as text-embedding-v4.
|
|
287
367
|
*
|
|
288
368
|
* @example
|
|
289
369
|
* text-embedding-v4
|
|
@@ -307,7 +387,7 @@ export class CreateApplicationRequestMemApplicationSpec extends $dara.Model {
|
|
|
307
387
|
graphLlmModel?: string;
|
|
308
388
|
/**
|
|
309
389
|
* @remarks
|
|
310
|
-
* Required for mem0 applications. The
|
|
390
|
+
* Required for mem0 applications. The LLM model name, such as qwen3-max.
|
|
311
391
|
*
|
|
312
392
|
* @example
|
|
313
393
|
* qwen3-max
|
|
@@ -323,7 +403,7 @@ export class CreateApplicationRequestMemApplicationSpec extends $dara.Model {
|
|
|
323
403
|
projectName?: string;
|
|
324
404
|
/**
|
|
325
405
|
* @remarks
|
|
326
|
-
* Required for mem0 applications. The
|
|
406
|
+
* Required for mem0 applications. The reranker model name, such as qwen3-rerank.
|
|
327
407
|
*
|
|
328
408
|
* @example
|
|
329
409
|
* qwen3-rerank
|
|
@@ -416,6 +496,106 @@ export class CreateApplicationRequestParameters extends $dara.Model {
|
|
|
416
496
|
}
|
|
417
497
|
}
|
|
418
498
|
|
|
499
|
+
export class CreateApplicationRequestStorages extends $dara.Model {
|
|
500
|
+
/**
|
|
501
|
+
* @remarks
|
|
502
|
+
* The mount path inside the container.
|
|
503
|
+
*
|
|
504
|
+
* @example
|
|
505
|
+
* /data/container
|
|
506
|
+
*/
|
|
507
|
+
containerMountPath?: string;
|
|
508
|
+
/**
|
|
509
|
+
* @remarks
|
|
510
|
+
* The storage endpoint ID.
|
|
511
|
+
*
|
|
512
|
+
* @example
|
|
513
|
+
* pe-xxxx
|
|
514
|
+
*/
|
|
515
|
+
endpointId?: string;
|
|
516
|
+
/**
|
|
517
|
+
* @remarks
|
|
518
|
+
* The storage mount path.
|
|
519
|
+
*
|
|
520
|
+
* @example
|
|
521
|
+
* /data/source
|
|
522
|
+
*/
|
|
523
|
+
mountPath?: string;
|
|
524
|
+
/**
|
|
525
|
+
* @remarks
|
|
526
|
+
* The storage capacity.
|
|
527
|
+
*
|
|
528
|
+
* @example
|
|
529
|
+
* 100
|
|
530
|
+
*/
|
|
531
|
+
storageCapacity?: string;
|
|
532
|
+
/**
|
|
533
|
+
* @remarks
|
|
534
|
+
* The storage access endpoint.
|
|
535
|
+
*
|
|
536
|
+
* @example
|
|
537
|
+
* polarfs.example.com
|
|
538
|
+
*/
|
|
539
|
+
storageEndpoint?: string;
|
|
540
|
+
/**
|
|
541
|
+
* @remarks
|
|
542
|
+
* The storage instance ID.
|
|
543
|
+
*
|
|
544
|
+
* @example
|
|
545
|
+
* pfs-xxxx
|
|
546
|
+
*/
|
|
547
|
+
storageInstanceId?: string;
|
|
548
|
+
/**
|
|
549
|
+
* @remarks
|
|
550
|
+
* The storage performance level.
|
|
551
|
+
*
|
|
552
|
+
* @example
|
|
553
|
+
* PL1
|
|
554
|
+
*/
|
|
555
|
+
storagePerformanceLevel?: string;
|
|
556
|
+
/**
|
|
557
|
+
* @remarks
|
|
558
|
+
* The storage type.
|
|
559
|
+
*
|
|
560
|
+
* @example
|
|
561
|
+
* oss
|
|
562
|
+
*/
|
|
563
|
+
storageType?: string;
|
|
564
|
+
static names(): { [key: string]: string } {
|
|
565
|
+
return {
|
|
566
|
+
containerMountPath: 'ContainerMountPath',
|
|
567
|
+
endpointId: 'EndpointId',
|
|
568
|
+
mountPath: 'MountPath',
|
|
569
|
+
storageCapacity: 'StorageCapacity',
|
|
570
|
+
storageEndpoint: 'StorageEndpoint',
|
|
571
|
+
storageInstanceId: 'StorageInstanceId',
|
|
572
|
+
storagePerformanceLevel: 'StoragePerformanceLevel',
|
|
573
|
+
storageType: 'StorageType',
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
static types(): { [key: string]: any } {
|
|
578
|
+
return {
|
|
579
|
+
containerMountPath: 'string',
|
|
580
|
+
endpointId: 'string',
|
|
581
|
+
mountPath: 'string',
|
|
582
|
+
storageCapacity: 'string',
|
|
583
|
+
storageEndpoint: 'string',
|
|
584
|
+
storageInstanceId: 'string',
|
|
585
|
+
storagePerformanceLevel: 'string',
|
|
586
|
+
storageType: 'string',
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
validate() {
|
|
591
|
+
super.validate();
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
constructor(map?: { [key: string]: any }) {
|
|
595
|
+
super(map);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
419
599
|
export class CreateApplicationRequestTag extends $dara.Model {
|
|
420
600
|
/**
|
|
421
601
|
* @remarks
|
|
@@ -459,12 +639,20 @@ export class CreateApplicationRequestTag extends $dara.Model {
|
|
|
459
639
|
export class CreateApplicationRequest extends $dara.Model {
|
|
460
640
|
/**
|
|
461
641
|
* @remarks
|
|
462
|
-
* The ID of an existing
|
|
642
|
+
* The ID of an existing model operator instance to associate. This parameter takes effect only when ApplicationType is set to polarclaw.
|
|
463
643
|
*
|
|
464
644
|
* @example
|
|
465
645
|
* pm-xxxxxx
|
|
466
646
|
*/
|
|
467
647
|
AIDBClusterId?: string;
|
|
648
|
+
/**
|
|
649
|
+
* @remarks
|
|
650
|
+
* The AgenticDB branch specification.
|
|
651
|
+
*
|
|
652
|
+
* @example
|
|
653
|
+
* {"DBClusterId":"pagc-2zea920mcvd5o87","TenantId":"t-cfc2d7df0e59439681f0087f51","ProjectId":"proj-d7849d0050664c758af795d468","BranchId":"br-9054b3b7649e4c0d977bd0df37","ForkFromBranch":true,"ForkFromApplicationId":"pa-source"}
|
|
654
|
+
*/
|
|
655
|
+
agenticDBBranchSpec?: CreateApplicationRequestAgenticDBBranchSpec;
|
|
468
656
|
/**
|
|
469
657
|
* @remarks
|
|
470
658
|
* The application type. Valid values:
|
|
@@ -501,7 +689,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
501
689
|
authProvider?: string;
|
|
502
690
|
/**
|
|
503
691
|
* @remarks
|
|
504
|
-
* The
|
|
692
|
+
* The authentication provider configuration.
|
|
505
693
|
*
|
|
506
694
|
* @example
|
|
507
695
|
* xxx
|
|
@@ -509,7 +697,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
509
697
|
authProviderConfig?: string;
|
|
510
698
|
/**
|
|
511
699
|
* @remarks
|
|
512
|
-
* Specifies whether to
|
|
700
|
+
* Specifies whether to enable automatic creation of an elastic IP address (EIP) and attach it to the instance. This is equivalent to associate with an EIP.
|
|
513
701
|
*
|
|
514
702
|
* @example
|
|
515
703
|
* qwen3-max
|
|
@@ -571,7 +759,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
571
759
|
dnatEntries?: CreateApplicationRequestDnatEntries[];
|
|
572
760
|
/**
|
|
573
761
|
* @remarks
|
|
574
|
-
* The dedicated
|
|
762
|
+
* The DNAT-dedicated NAT IP address that has been allocated (separate from the SNAT IP address) for NAT mapping. The IP address must belong to the specified gateway and be in an available state. The vSwitch of the gateway must belong to a primary CIDR block that is reachable from the office network. Specify this parameter together with VpcNatGatewayId. Prerequisite: An SNAT entry has been bound to the vSwitch where the application resides.
|
|
575
763
|
*
|
|
576
764
|
* @example
|
|
577
765
|
* 10.64.0.10
|
|
@@ -579,7 +767,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
579
767
|
dnatIpAddress?: string;
|
|
580
768
|
/**
|
|
581
769
|
* @remarks
|
|
582
|
-
* Default value: `false`. If you set this parameter to `true`, only parameter and resource validation is performed without actually creating
|
|
770
|
+
* Default value: `false`. If you set this parameter to `true`, only parameter and resource validation is performed without actually creating the resource.
|
|
583
771
|
*
|
|
584
772
|
* @example
|
|
585
773
|
* false
|
|
@@ -602,7 +790,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
602
790
|
memApplicationSpec?: CreateApplicationRequestMemApplicationSpec;
|
|
603
791
|
/**
|
|
604
792
|
* @remarks
|
|
605
|
-
* The API
|
|
793
|
+
* The model API. This parameter takes effect only when ApplicationType is set to polarclaw.
|
|
606
794
|
*
|
|
607
795
|
* @example
|
|
608
796
|
* openai-completions
|
|
@@ -610,7 +798,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
610
798
|
modelApi?: string;
|
|
611
799
|
/**
|
|
612
800
|
* @remarks
|
|
613
|
-
* The API key
|
|
801
|
+
* The model API key. This parameter takes effect only when ApplicationType is set to polarclaw.
|
|
614
802
|
*
|
|
615
803
|
* @example
|
|
616
804
|
* sk-xxxxxx
|
|
@@ -618,7 +806,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
618
806
|
modelApiKey?: string;
|
|
619
807
|
/**
|
|
620
808
|
* @remarks
|
|
621
|
-
* The
|
|
809
|
+
* The model base URL. This parameter takes effect only when ApplicationType is set to polarclaw.
|
|
622
810
|
*
|
|
623
811
|
* @example
|
|
624
812
|
* https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
@@ -627,7 +815,8 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
627
815
|
/**
|
|
628
816
|
* @remarks
|
|
629
817
|
* The model source. Valid values:
|
|
630
|
-
*
|
|
818
|
+
*
|
|
819
|
+
* * bailian: Alibaba Cloud Model Studio model.
|
|
631
820
|
* * custom: Custom model.
|
|
632
821
|
* * maas: PolarDB model operator.
|
|
633
822
|
*
|
|
@@ -637,7 +826,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
637
826
|
modelFrom?: string;
|
|
638
827
|
/**
|
|
639
828
|
* @remarks
|
|
640
|
-
* The name
|
|
829
|
+
* The model name. This parameter takes effect only when ApplicationType is set to polarclaw.
|
|
641
830
|
*
|
|
642
831
|
* @example
|
|
643
832
|
* qwen3-max
|
|
@@ -658,7 +847,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
658
847
|
payType?: string;
|
|
659
848
|
/**
|
|
660
849
|
* @remarks
|
|
661
|
-
* The subscription type
|
|
850
|
+
* The subscription type (yearly or monthly).
|
|
662
851
|
*
|
|
663
852
|
* @example
|
|
664
853
|
* Year
|
|
@@ -666,7 +855,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
666
855
|
period?: string;
|
|
667
856
|
/**
|
|
668
857
|
* @remarks
|
|
669
|
-
* The instance ID of the Polarlakebase cold storage or high-performance
|
|
858
|
+
* The instance ID of the Polarlakebase cold storage or high-performance edition. Default value: empty. If specified, the corresponding storage is mounted to the application.
|
|
670
859
|
*
|
|
671
860
|
* Currently, only the following applications support this parameter:
|
|
672
861
|
* - supabase
|
|
@@ -718,7 +907,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
718
907
|
securityIPArrayName?: string;
|
|
719
908
|
/**
|
|
720
909
|
* @remarks
|
|
721
|
-
* The IP whitelist. If you do not specify this parameter, the default value `127.0.0.1
|
|
910
|
+
* The IP whitelist. If you do not specify this parameter, the default value is `127.0.0.1`.
|
|
722
911
|
*
|
|
723
912
|
* @example
|
|
724
913
|
* 127.0.0.1,172.17.0.0/24
|
|
@@ -740,6 +929,14 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
740
929
|
* xxx
|
|
741
930
|
*/
|
|
742
931
|
skillTemplateId?: string;
|
|
932
|
+
/**
|
|
933
|
+
* @remarks
|
|
934
|
+
* The list of application storages.
|
|
935
|
+
*
|
|
936
|
+
* @example
|
|
937
|
+
* [{"StorageType":"oss","StorageInstanceId":"pfs-xxxx","EndpointId":"pe-xxxx"}]
|
|
938
|
+
*/
|
|
939
|
+
storages?: CreateApplicationRequestStorages[];
|
|
743
940
|
/**
|
|
744
941
|
* @remarks
|
|
745
942
|
* The tags.
|
|
@@ -763,7 +960,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
763
960
|
usedTime?: string;
|
|
764
961
|
/**
|
|
765
962
|
* @remarks
|
|
766
|
-
* The vSwitch. Default value: the
|
|
963
|
+
* The vSwitch. Default value: the vSwitch in the primary zone of the instance.
|
|
767
964
|
*
|
|
768
965
|
* @example
|
|
769
966
|
* vsw-*********************
|
|
@@ -779,7 +976,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
779
976
|
vpcId?: string;
|
|
780
977
|
/**
|
|
781
978
|
* @remarks
|
|
782
|
-
* The VPC NAT gateway ID for NAT mapping. If specified, NAT mapping is enabled when the instance is created. The NAT gateway must be in the same VPC as the application, use the private network type (intranet), and be in
|
|
979
|
+
* The VPC NAT gateway ID for NAT mapping. If specified, NAT mapping is enabled when the instance is created. The NAT gateway must be in the same VPC as the application, use the private network type (intranet), and be in an active state.
|
|
783
980
|
*
|
|
784
981
|
* @example
|
|
785
982
|
* ngw-xxx
|
|
@@ -796,6 +993,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
796
993
|
static names(): { [key: string]: string } {
|
|
797
994
|
return {
|
|
798
995
|
AIDBClusterId: 'AIDBClusterId',
|
|
996
|
+
agenticDBBranchSpec: 'AgenticDBBranchSpec',
|
|
799
997
|
applicationType: 'ApplicationType',
|
|
800
998
|
architecture: 'Architecture',
|
|
801
999
|
authProvider: 'AuthProvider',
|
|
@@ -830,6 +1028,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
830
1028
|
securityIPList: 'SecurityIPList',
|
|
831
1029
|
securityIPType: 'SecurityIPType',
|
|
832
1030
|
skillTemplateId: 'SkillTemplateId',
|
|
1031
|
+
storages: 'Storages',
|
|
833
1032
|
tag: 'Tag',
|
|
834
1033
|
targetVersion: 'TargetVersion',
|
|
835
1034
|
usedTime: 'UsedTime',
|
|
@@ -843,6 +1042,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
843
1042
|
static types(): { [key: string]: any } {
|
|
844
1043
|
return {
|
|
845
1044
|
AIDBClusterId: 'string',
|
|
1045
|
+
agenticDBBranchSpec: CreateApplicationRequestAgenticDBBranchSpec,
|
|
846
1046
|
applicationType: 'string',
|
|
847
1047
|
architecture: 'string',
|
|
848
1048
|
authProvider: 'string',
|
|
@@ -877,6 +1077,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
877
1077
|
securityIPList: 'string',
|
|
878
1078
|
securityIPType: 'string',
|
|
879
1079
|
skillTemplateId: 'string',
|
|
1080
|
+
storages: { 'type': 'array', 'itemType': CreateApplicationRequestStorages },
|
|
880
1081
|
tag: { 'type': 'array', 'itemType': CreateApplicationRequestTag },
|
|
881
1082
|
targetVersion: 'string',
|
|
882
1083
|
usedTime: 'string',
|
|
@@ -888,6 +1089,9 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
888
1089
|
}
|
|
889
1090
|
|
|
890
1091
|
validate() {
|
|
1092
|
+
if(this.agenticDBBranchSpec && typeof (this.agenticDBBranchSpec as any).validate === 'function') {
|
|
1093
|
+
(this.agenticDBBranchSpec as any).validate();
|
|
1094
|
+
}
|
|
891
1095
|
if(Array.isArray(this.components)) {
|
|
892
1096
|
$dara.Model.validateArray(this.components);
|
|
893
1097
|
}
|
|
@@ -906,6 +1110,9 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
906
1110
|
if(Array.isArray(this.parameters)) {
|
|
907
1111
|
$dara.Model.validateArray(this.parameters);
|
|
908
1112
|
}
|
|
1113
|
+
if(Array.isArray(this.storages)) {
|
|
1114
|
+
$dara.Model.validateArray(this.storages);
|
|
1115
|
+
}
|
|
909
1116
|
if(Array.isArray(this.tag)) {
|
|
910
1117
|
$dara.Model.validateArray(this.tag);
|
|
911
1118
|
}
|
|
@@ -45,12 +45,20 @@ export class CreateApplicationShrinkRequestTag extends $dara.Model {
|
|
|
45
45
|
export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The ID of an existing
|
|
48
|
+
* The ID of an existing model operator instance to associate. This parameter takes effect only when ApplicationType is set to polarclaw.
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* pm-xxxxxx
|
|
52
52
|
*/
|
|
53
53
|
AIDBClusterId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The AgenticDB branch specification.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* {"DBClusterId":"pagc-2zea920mcvd5o87","TenantId":"t-cfc2d7df0e59439681f0087f51","ProjectId":"proj-d7849d0050664c758af795d468","BranchId":"br-9054b3b7649e4c0d977bd0df37","ForkFromBranch":true,"ForkFromApplicationId":"pa-source"}
|
|
60
|
+
*/
|
|
61
|
+
agenticDBBranchSpecShrink?: string;
|
|
54
62
|
/**
|
|
55
63
|
* @remarks
|
|
56
64
|
* The application type. Valid values:
|
|
@@ -87,7 +95,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
87
95
|
authProvider?: string;
|
|
88
96
|
/**
|
|
89
97
|
* @remarks
|
|
90
|
-
* The
|
|
98
|
+
* The authentication provider configuration.
|
|
91
99
|
*
|
|
92
100
|
* @example
|
|
93
101
|
* xxx
|
|
@@ -95,7 +103,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
95
103
|
authProviderConfig?: string;
|
|
96
104
|
/**
|
|
97
105
|
* @remarks
|
|
98
|
-
* Specifies whether to
|
|
106
|
+
* Specifies whether to enable automatic creation of an elastic IP address (EIP) and attach it to the instance. This is equivalent to associate with an EIP.
|
|
99
107
|
*
|
|
100
108
|
* @example
|
|
101
109
|
* qwen3-max
|
|
@@ -157,7 +165,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
157
165
|
dnatEntriesShrink?: string;
|
|
158
166
|
/**
|
|
159
167
|
* @remarks
|
|
160
|
-
* The dedicated
|
|
168
|
+
* The DNAT-dedicated NAT IP address that has been allocated (separate from the SNAT IP address) for NAT mapping. The IP address must belong to the specified gateway and be in an available state. The vSwitch of the gateway must belong to a primary CIDR block that is reachable from the office network. Specify this parameter together with VpcNatGatewayId. Prerequisite: An SNAT entry has been bound to the vSwitch where the application resides.
|
|
161
169
|
*
|
|
162
170
|
* @example
|
|
163
171
|
* 10.64.0.10
|
|
@@ -165,7 +173,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
165
173
|
dnatIpAddress?: string;
|
|
166
174
|
/**
|
|
167
175
|
* @remarks
|
|
168
|
-
* Default value: `false`. If you set this parameter to `true`, only parameter and resource validation is performed without actually creating
|
|
176
|
+
* Default value: `false`. If you set this parameter to `true`, only parameter and resource validation is performed without actually creating the resource.
|
|
169
177
|
*
|
|
170
178
|
* @example
|
|
171
179
|
* false
|
|
@@ -188,7 +196,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
188
196
|
memApplicationSpecShrink?: string;
|
|
189
197
|
/**
|
|
190
198
|
* @remarks
|
|
191
|
-
* The API
|
|
199
|
+
* The model API. This parameter takes effect only when ApplicationType is set to polarclaw.
|
|
192
200
|
*
|
|
193
201
|
* @example
|
|
194
202
|
* openai-completions
|
|
@@ -196,7 +204,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
196
204
|
modelApi?: string;
|
|
197
205
|
/**
|
|
198
206
|
* @remarks
|
|
199
|
-
* The API key
|
|
207
|
+
* The model API key. This parameter takes effect only when ApplicationType is set to polarclaw.
|
|
200
208
|
*
|
|
201
209
|
* @example
|
|
202
210
|
* sk-xxxxxx
|
|
@@ -204,7 +212,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
204
212
|
modelApiKey?: string;
|
|
205
213
|
/**
|
|
206
214
|
* @remarks
|
|
207
|
-
* The
|
|
215
|
+
* The model base URL. This parameter takes effect only when ApplicationType is set to polarclaw.
|
|
208
216
|
*
|
|
209
217
|
* @example
|
|
210
218
|
* https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
@@ -213,7 +221,8 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
213
221
|
/**
|
|
214
222
|
* @remarks
|
|
215
223
|
* The model source. Valid values:
|
|
216
|
-
*
|
|
224
|
+
*
|
|
225
|
+
* * bailian: Alibaba Cloud Model Studio model.
|
|
217
226
|
* * custom: Custom model.
|
|
218
227
|
* * maas: PolarDB model operator.
|
|
219
228
|
*
|
|
@@ -223,7 +232,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
223
232
|
modelFrom?: string;
|
|
224
233
|
/**
|
|
225
234
|
* @remarks
|
|
226
|
-
* The name
|
|
235
|
+
* The model name. This parameter takes effect only when ApplicationType is set to polarclaw.
|
|
227
236
|
*
|
|
228
237
|
* @example
|
|
229
238
|
* qwen3-max
|
|
@@ -244,7 +253,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
244
253
|
payType?: string;
|
|
245
254
|
/**
|
|
246
255
|
* @remarks
|
|
247
|
-
* The subscription type
|
|
256
|
+
* The subscription type (yearly or monthly).
|
|
248
257
|
*
|
|
249
258
|
* @example
|
|
250
259
|
* Year
|
|
@@ -252,7 +261,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
252
261
|
period?: string;
|
|
253
262
|
/**
|
|
254
263
|
* @remarks
|
|
255
|
-
* The instance ID of the Polarlakebase cold storage or high-performance
|
|
264
|
+
* The instance ID of the Polarlakebase cold storage or high-performance edition. Default value: empty. If specified, the corresponding storage is mounted to the application.
|
|
256
265
|
*
|
|
257
266
|
* Currently, only the following applications support this parameter:
|
|
258
267
|
* - supabase
|
|
@@ -304,7 +313,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
304
313
|
securityIPArrayName?: string;
|
|
305
314
|
/**
|
|
306
315
|
* @remarks
|
|
307
|
-
* The IP whitelist. If you do not specify this parameter, the default value `127.0.0.1
|
|
316
|
+
* The IP whitelist. If you do not specify this parameter, the default value is `127.0.0.1`.
|
|
308
317
|
*
|
|
309
318
|
* @example
|
|
310
319
|
* 127.0.0.1,172.17.0.0/24
|
|
@@ -326,6 +335,14 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
326
335
|
* xxx
|
|
327
336
|
*/
|
|
328
337
|
skillTemplateId?: string;
|
|
338
|
+
/**
|
|
339
|
+
* @remarks
|
|
340
|
+
* The list of application storages.
|
|
341
|
+
*
|
|
342
|
+
* @example
|
|
343
|
+
* [{"StorageType":"oss","StorageInstanceId":"pfs-xxxx","EndpointId":"pe-xxxx"}]
|
|
344
|
+
*/
|
|
345
|
+
storagesShrink?: string;
|
|
329
346
|
/**
|
|
330
347
|
* @remarks
|
|
331
348
|
* The tags.
|
|
@@ -349,7 +366,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
349
366
|
usedTime?: string;
|
|
350
367
|
/**
|
|
351
368
|
* @remarks
|
|
352
|
-
* The vSwitch. Default value: the
|
|
369
|
+
* The vSwitch. Default value: the vSwitch in the primary zone of the instance.
|
|
353
370
|
*
|
|
354
371
|
* @example
|
|
355
372
|
* vsw-*********************
|
|
@@ -365,7 +382,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
365
382
|
vpcId?: string;
|
|
366
383
|
/**
|
|
367
384
|
* @remarks
|
|
368
|
-
* The VPC NAT gateway ID for NAT mapping. If specified, NAT mapping is enabled when the instance is created. The NAT gateway must be in the same VPC as the application, use the private network type (intranet), and be in
|
|
385
|
+
* The VPC NAT gateway ID for NAT mapping. If specified, NAT mapping is enabled when the instance is created. The NAT gateway must be in the same VPC as the application, use the private network type (intranet), and be in an active state.
|
|
369
386
|
*
|
|
370
387
|
* @example
|
|
371
388
|
* ngw-xxx
|
|
@@ -382,6 +399,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
382
399
|
static names(): { [key: string]: string } {
|
|
383
400
|
return {
|
|
384
401
|
AIDBClusterId: 'AIDBClusterId',
|
|
402
|
+
agenticDBBranchSpecShrink: 'AgenticDBBranchSpec',
|
|
385
403
|
applicationType: 'ApplicationType',
|
|
386
404
|
architecture: 'Architecture',
|
|
387
405
|
authProvider: 'AuthProvider',
|
|
@@ -416,6 +434,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
416
434
|
securityIPList: 'SecurityIPList',
|
|
417
435
|
securityIPType: 'SecurityIPType',
|
|
418
436
|
skillTemplateId: 'SkillTemplateId',
|
|
437
|
+
storagesShrink: 'Storages',
|
|
419
438
|
tag: 'Tag',
|
|
420
439
|
targetVersion: 'TargetVersion',
|
|
421
440
|
usedTime: 'UsedTime',
|
|
@@ -429,6 +448,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
429
448
|
static types(): { [key: string]: any } {
|
|
430
449
|
return {
|
|
431
450
|
AIDBClusterId: 'string',
|
|
451
|
+
agenticDBBranchSpecShrink: 'string',
|
|
432
452
|
applicationType: 'string',
|
|
433
453
|
architecture: 'string',
|
|
434
454
|
authProvider: 'string',
|
|
@@ -463,6 +483,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
463
483
|
securityIPList: 'string',
|
|
464
484
|
securityIPType: 'string',
|
|
465
485
|
skillTemplateId: 'string',
|
|
486
|
+
storagesShrink: 'string',
|
|
466
487
|
tag: { 'type': 'array', 'itemType': CreateApplicationShrinkRequestTag },
|
|
467
488
|
targetVersion: 'string',
|
|
468
489
|
usedTime: 'string',
|
package/src/models/model.ts
CHANGED
|
@@ -6,12 +6,14 @@ export { CheckPolarFsQuotaConsistencyResponseBodyQuotaItem } from './CheckPolarF
|
|
|
6
6
|
export { CreateAIDBClusterRequestTimeSlices } from './CreateAidbclusterRequest';
|
|
7
7
|
export { CreateAIDBClusterApiKeyResponseBodyApiKey } from './CreateAidbclusterApiKeyResponseBody';
|
|
8
8
|
export { CreateAINodesRequestDBNodes } from './CreateAinodesRequest';
|
|
9
|
+
export { CreateApplicationRequestAgenticDBBranchSpec } from './CreateApplicationRequest';
|
|
9
10
|
export { CreateApplicationRequestComponents } from './CreateApplicationRequest';
|
|
10
11
|
export { CreateApplicationRequestDnatEntries } from './CreateApplicationRequest';
|
|
11
12
|
export { CreateApplicationRequestEndpoints } from './CreateApplicationRequest';
|
|
12
13
|
export { CreateApplicationRequestKnowledgeApplicationSpec } from './CreateApplicationRequest';
|
|
13
14
|
export { CreateApplicationRequestMemApplicationSpec } from './CreateApplicationRequest';
|
|
14
15
|
export { CreateApplicationRequestParameters } from './CreateApplicationRequest';
|
|
16
|
+
export { CreateApplicationRequestStorages } from './CreateApplicationRequest';
|
|
15
17
|
export { CreateApplicationRequestTag } from './CreateApplicationRequest';
|
|
16
18
|
export { CreateApplicationShrinkRequestTag } from './CreateApplicationShrinkRequest';
|
|
17
19
|
export { CreateApplicationResponseBodyComponents } from './CreateApplicationResponseBody';
|