@alicloud/gpdb20160503 3.7.0 → 3.8.0

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.
Files changed (76) hide show
  1. package/dist/client.d.ts +76 -34
  2. package/dist/client.js +130 -34
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ChatWithKnowledgeBaseRequest.d.ts +68 -111
  5. package/dist/models/ChatWithKnowledgeBaseRequest.js +2 -0
  6. package/dist/models/ChatWithKnowledgeBaseRequest.js.map +1 -1
  7. package/dist/models/ChatWithKnowledgeBaseResponseBody.d.ts +45 -52
  8. package/dist/models/ChatWithKnowledgeBaseResponseBody.js.map +1 -1
  9. package/dist/models/ChatWithKnowledgeBaseShrinkRequest.d.ts +5 -6
  10. package/dist/models/ChatWithKnowledgeBaseShrinkRequest.js.map +1 -1
  11. package/dist/models/ChatWithKnowledgeBaseStreamRequest.d.ts +71 -87
  12. package/dist/models/ChatWithKnowledgeBaseStreamRequest.js +2 -0
  13. package/dist/models/ChatWithKnowledgeBaseStreamRequest.js.map +1 -1
  14. package/dist/models/ChatWithKnowledgeBaseStreamResponseBody.d.ts +44 -50
  15. package/dist/models/ChatWithKnowledgeBaseStreamResponseBody.js.map +1 -1
  16. package/dist/models/ChatWithKnowledgeBaseStreamShrinkRequest.d.ts +6 -6
  17. package/dist/models/PauseSaasServiceRequest.d.ts +26 -0
  18. package/dist/models/PauseSaasServiceRequest.js +60 -0
  19. package/dist/models/PauseSaasServiceRequest.js.map +1 -0
  20. package/dist/models/PauseSaasServiceResponse.d.ts +19 -0
  21. package/dist/models/PauseSaasServiceResponse.js +69 -0
  22. package/dist/models/PauseSaasServiceResponse.js.map +1 -0
  23. package/dist/models/PauseSaasServiceResponseBody.d.ts +23 -0
  24. package/dist/models/PauseSaasServiceResponseBody.js +60 -0
  25. package/dist/models/PauseSaasServiceResponseBody.js.map +1 -0
  26. package/dist/models/QueryContentAdvanceRequest.d.ts +57 -70
  27. package/dist/models/QueryContentAdvanceRequest.js +2 -0
  28. package/dist/models/QueryContentAdvanceRequest.js.map +1 -1
  29. package/dist/models/QueryContentRequest.d.ts +57 -70
  30. package/dist/models/QueryContentRequest.js +2 -0
  31. package/dist/models/QueryContentRequest.js.map +1 -1
  32. package/dist/models/QueryContentResponseBody.d.ts +10 -11
  33. package/dist/models/QueryContentResponseBody.js.map +1 -1
  34. package/dist/models/QueryContentShrinkRequest.d.ts +52 -66
  35. package/dist/models/QueryContentShrinkRequest.js.map +1 -1
  36. package/dist/models/QueryKnowledgeBasesContentRequest.d.ts +62 -78
  37. package/dist/models/QueryKnowledgeBasesContentRequest.js +2 -0
  38. package/dist/models/QueryKnowledgeBasesContentRequest.js.map +1 -1
  39. package/dist/models/QueryKnowledgeBasesContentResponseBody.d.ts +11 -25
  40. package/dist/models/QueryKnowledgeBasesContentResponseBody.js.map +1 -1
  41. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.d.ts +11 -15
  42. package/dist/models/QueryKnowledgeBasesContentShrinkRequest.js.map +1 -1
  43. package/dist/models/ResumeSaasServiceRequest.d.ts +26 -0
  44. package/dist/models/ResumeSaasServiceRequest.js +60 -0
  45. package/dist/models/ResumeSaasServiceRequest.js.map +1 -0
  46. package/dist/models/ResumeSaasServiceResponse.d.ts +19 -0
  47. package/dist/models/ResumeSaasServiceResponse.js +69 -0
  48. package/dist/models/ResumeSaasServiceResponse.js.map +1 -0
  49. package/dist/models/ResumeSaasServiceResponseBody.d.ts +23 -0
  50. package/dist/models/ResumeSaasServiceResponseBody.js +60 -0
  51. package/dist/models/ResumeSaasServiceResponseBody.js.map +1 -0
  52. package/dist/models/model.d.ts +6 -0
  53. package/dist/models/model.js +16 -4
  54. package/dist/models/model.js.map +1 -1
  55. package/package.json +1 -1
  56. package/src/client.ts +138 -34
  57. package/src/models/ChatWithKnowledgeBaseRequest.ts +70 -111
  58. package/src/models/ChatWithKnowledgeBaseResponseBody.ts +45 -52
  59. package/src/models/ChatWithKnowledgeBaseShrinkRequest.ts +5 -6
  60. package/src/models/ChatWithKnowledgeBaseStreamRequest.ts +73 -87
  61. package/src/models/ChatWithKnowledgeBaseStreamResponseBody.ts +44 -50
  62. package/src/models/ChatWithKnowledgeBaseStreamShrinkRequest.ts +6 -6
  63. package/src/models/PauseSaasServiceRequest.ts +41 -0
  64. package/src/models/PauseSaasServiceResponse.ts +40 -0
  65. package/src/models/PauseSaasServiceResponseBody.ts +38 -0
  66. package/src/models/QueryContentAdvanceRequest.ts +60 -71
  67. package/src/models/QueryContentRequest.ts +60 -71
  68. package/src/models/QueryContentResponseBody.ts +10 -11
  69. package/src/models/QueryContentShrinkRequest.ts +53 -67
  70. package/src/models/QueryKnowledgeBasesContentRequest.ts +64 -78
  71. package/src/models/QueryKnowledgeBasesContentResponseBody.ts +11 -25
  72. package/src/models/QueryKnowledgeBasesContentShrinkRequest.ts +11 -15
  73. package/src/models/ResumeSaasServiceRequest.ts +41 -0
  74. package/src/models/ResumeSaasServiceResponse.ts +40 -0
  75. package/src/models/ResumeSaasServiceResponseBody.ts +38 -0
  76. package/src/models/model.ts +6 -0
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessageToolCallsFunction extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The arguments for the function call, generated by the model in JSON format.
8
+ * The arguments of the called function.
9
9
  *
10
10
  * @example
11
11
  * {"city":"hangzhou"}
@@ -13,7 +13,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
13
13
  arguments?: string;
14
14
  /**
15
15
  * @remarks
16
- * The name of the function to call.
16
+ * The name of the called function.
17
17
  *
18
18
  * @example
19
19
  * "get_weather"
@@ -45,12 +45,12 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
45
45
  export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessageToolCalls extends $dara.Model {
46
46
  /**
47
47
  * @remarks
48
- * Details of the function that the model wants to call.
48
+ * The information about the called function.
49
49
  */
50
50
  function?: ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessageToolCallsFunction;
51
51
  /**
52
52
  * @remarks
53
- * The ID of the tool call.
53
+ * ID
54
54
  *
55
55
  * @example
56
56
  * "chatcmpl-c1bebafa-cc48-44e2-88c6-1a3572952f8e"
@@ -58,7 +58,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
58
58
  id?: string;
59
59
  /**
60
60
  * @remarks
61
- * The index of the tool in the `Input` parameter of the request, starting from 0.
61
+ * The index of this tool in the Input request parameter, starting from 0.
62
62
  *
63
63
  * @example
64
64
  * 1
@@ -95,7 +95,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
95
95
  export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage extends $dara.Model {
96
96
  /**
97
97
  * @remarks
98
- * The message content.
98
+ * The document content.
99
99
  *
100
100
  * @example
101
101
  * The weather in Hangzhou is sunny.
@@ -103,7 +103,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
103
103
  content?: string;
104
104
  /**
105
105
  * @remarks
106
- * The model\\"s chain of thought (CoT) content.
106
+ * The chain-of-thought content of the model.
107
107
  *
108
108
  * @example
109
109
  * Logical reasoning process
@@ -111,13 +111,11 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
111
111
  reasoningContent?: string;
112
112
  /**
113
113
  * @remarks
114
- * The role of the message author. Valid values:
115
- *
116
- * - `system`
114
+ * The message role. Valid values:
117
115
  *
118
- * - `user`
119
- *
120
- * - `assistant`
116
+ * - system
117
+ * - user
118
+ * - assistant.
121
119
  *
122
120
  * @example
123
121
  * user
@@ -125,7 +123,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
125
123
  role?: string;
126
124
  /**
127
125
  * @remarks
128
- * The tool call responses.
126
+ * The tool invocation response.
129
127
  */
130
128
  toolCalls?: ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessageToolCalls[];
131
129
  static names(): { [key: string]: string } {
@@ -161,7 +159,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
161
159
  export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoices extends $dara.Model {
162
160
  /**
163
161
  * @remarks
164
- * The reason the model stopped generating output.
162
+ * The stop reason.
165
163
  *
166
164
  * @example
167
165
  * finish
@@ -169,7 +167,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoices extend
169
167
  finishReason?: string;
170
168
  /**
171
169
  * @remarks
172
- * The index of the choice.
170
+ * The response index.
173
171
  *
174
172
  * @example
175
173
  * 0
@@ -177,7 +175,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoices extend
177
175
  index?: number;
178
176
  /**
179
177
  * @remarks
180
- * The response from the large language model (LLM).
178
+ * The large language model response.
181
179
  */
182
180
  message?: ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage;
183
181
  static names(): { [key: string]: string } {
@@ -211,7 +209,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoices extend
211
209
  export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsagePromptTokensDetails extends $dara.Model {
212
210
  /**
213
211
  * @remarks
214
- * The number of prompt tokens served from the cache.
212
+ * The number of tokens that hit the cache.
215
213
  *
216
214
  * @example
217
215
  * 24
@@ -241,7 +239,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsagePromptTok
241
239
  export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsage extends $dara.Model {
242
240
  /**
243
241
  * @remarks
244
- * The number of tokens in the generated response.
242
+ * The number of tokens consumed for generating the content.
245
243
  *
246
244
  * @example
247
245
  * 42
@@ -249,7 +247,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsage extends
249
247
  completionTokens?: number;
250
248
  /**
251
249
  * @remarks
252
- * The number of tokens in the input prompt.
250
+ * The number of tokens consumed by the input prompt.
253
251
  *
254
252
  * @example
255
253
  * 42
@@ -257,7 +255,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsage extends
257
255
  promptTokens?: number;
258
256
  /**
259
257
  * @remarks
260
- * Details about the prompt token usage.
258
+ * The prompt token details.
261
259
  */
262
260
  promptTokensDetails?: ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsagePromptTokensDetails;
263
261
  /**
@@ -301,12 +299,12 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsage extends
301
299
  export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletion extends $dara.Model {
302
300
  /**
303
301
  * @remarks
304
- * The streaming output content.
302
+ * The text content generated in real time.
305
303
  */
306
304
  choices?: ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoices[];
307
305
  /**
308
306
  * @remarks
309
- * The creation time, in Unix timestamp format.
307
+ * The creation time.
310
308
  *
311
309
  * @example
312
310
  * 1758529748
@@ -330,7 +328,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletion extends $dara
330
328
  model?: string;
331
329
  /**
332
330
  * @remarks
333
- * The token usage statistics for the completion.
331
+ * The number of tokens used by the large language model output.
334
332
  */
335
333
  usage?: ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsage;
336
334
  static names(): { [key: string]: string } {
@@ -387,9 +385,9 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
387
385
  fileName?: string;
388
386
  /**
389
387
  * @remarks
390
- * The public URL of the retrieved image. By default, the URL is valid for 2 hours.
388
+ * The public URL of the image in the query result. The URL is valid for 2 hours by default.
391
389
  *
392
- * You can use the `UrlExpiration` parameter to specify a custom validity period.
390
+ * You can specify a custom validity period by using the UrlExpiration parameter.
393
391
  *
394
392
  * @example
395
393
  * http://dailyshort-sh.oss-cn-shanghai.aliyuncs.com/vod-8efba5/f06147795c6c71f080605420848d0302/0ca34d5743a84bf7c68f489a60715dac-ld.mp4
@@ -397,9 +395,9 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
397
395
  fileURL?: string;
398
396
  /**
399
397
  * @remarks
400
- * The unique ID of the vector record.
398
+ * The unique ID of this vector data entry.
401
399
  *
402
- * > If this parameter is left empty, the database automatically generates a UUID. If you provide an ID that conflicts with an existing one, the existing record is updated with the data from the request.
400
+ * > If this value is empty, the database automatically generates a UUID. If this value is not empty and conflicts with an existing ID in the database, the API data overwrites the existing value in the database.
403
401
  *
404
402
  * @example
405
403
  * 273e3fc7-8f56-4167-a1bb-d35d2f3b9043
@@ -407,7 +405,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
407
405
  id?: string;
408
406
  /**
409
407
  * @remarks
410
- * Metadata from the document loader, captured during document ingestion.
408
+ * The metadata generated by the document loader during loading.
411
409
  *
412
410
  * @example
413
411
  * {"page":1}
@@ -415,12 +413,12 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
415
413
  loaderMetadata?: any;
416
414
  /**
417
415
  * @remarks
418
- * The user-defined metadata.
416
+ * The metadata.
419
417
  */
420
418
  metadata?: { [key: string]: any };
421
419
  /**
422
420
  * @remarks
423
- * The rerank score.
421
+ * The reranking score.
424
422
  *
425
423
  * @example
426
424
  * 0.12
@@ -428,7 +426,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
428
426
  rerankScore?: number;
429
427
  /**
430
428
  * @remarks
431
- * The source of the match. `1` indicates vector search, `2` indicates full-text search, and `3` indicates hybrid recall.
429
+ * The source of the retrieve result. A value of 1 indicates AISearch retrieve, 2 indicates full-text index retrieve, and 3 indicates multi-channel recall.
432
430
  *
433
431
  * @example
434
432
  * 0.12
@@ -436,7 +434,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
436
434
  retrievalSource?: number;
437
435
  /**
438
436
  * @remarks
439
- * The similarity score. The score is calculated based on the distance metric specified when the index was created (`l2/ip/cosine`).
437
+ * The similarity score of this data entry. The scoring algorithm is related to the algorithm specified during index creation (l2, ip, or cosine).
440
438
  *
441
439
  * @example
442
440
  * 10
@@ -495,9 +493,9 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
495
493
  export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultUsage extends $dara.Model {
496
494
  /**
497
495
  * @remarks
498
- * The number of tokens used for embedding.
496
+ * The number of tokens used during vectorization.
499
497
  *
500
- * > A token is the smallest unit created by splitting the input text. A token can be a unit such as a word, a phrase, a punctuation mark, or a character.
498
+ * > A token is the smallest unit into which input text is segmented. A token can be a word, a phrase, a punctuation mark, or a character.
501
499
  *
502
500
  * @example
503
501
  * 158
@@ -527,17 +525,17 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultU
527
525
  export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResult extends $dara.Model {
528
526
  /**
529
527
  * @remarks
530
- * A list of retrieved entities.
528
+ * The entity details.
531
529
  */
532
530
  entities?: string[];
533
531
  /**
534
532
  * @remarks
535
- * A list of retrieved matches.
533
+ * The recall items.
536
534
  */
537
535
  matches?: ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultMatches[];
538
536
  /**
539
537
  * @remarks
540
- * A list of relationship edges.
538
+ * The relation names.
541
539
  */
542
540
  relations?: string[];
543
541
  /**
@@ -550,11 +548,9 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResult
550
548
  requestId?: string;
551
549
  /**
552
550
  * @remarks
553
- * The status of the API call. Valid values:
554
- *
555
- * - **success**: The call succeeded.
556
- *
557
- * - **fail**: The call failed.
551
+ * The API execution status. Valid values:
552
+ * - **success**: The execution is successful.
553
+ * - **fail**: The execution failed.
558
554
  *
559
555
  * @example
560
556
  * success
@@ -570,7 +566,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResult
570
566
  tokens?: number;
571
567
  /**
572
568
  * @remarks
573
- * The number of tokens consumed for embedding.
569
+ * The number of tokens or entries consumed by document understanding or embedding.
574
570
  */
575
571
  usage?: ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultUsage;
576
572
  static names(): { [key: string]: string } {
@@ -634,7 +630,7 @@ export class ChatWithKnowledgeBaseStreamResponseBody extends $dara.Model {
634
630
  message?: string;
635
631
  /**
636
632
  * @remarks
637
- * The retrieval results from multiple knowledge bases.
633
+ * The recall information from multiple knowledge bases.
638
634
  */
639
635
  multiCollectionRecallResult?: ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResult;
640
636
  /**
@@ -647,11 +643,9 @@ export class ChatWithKnowledgeBaseStreamResponseBody extends $dara.Model {
647
643
  requestId?: string;
648
644
  /**
649
645
  * @remarks
650
- * The status of the request. Valid values:
651
- *
652
- * - **success**: The request succeeded.
653
- *
654
- * - **fail**: The request failed.
646
+ * The status. Valid values:
647
+ * - **success**: Successful.
648
+ * - **fail**: Failed.
655
649
  *
656
650
  * @example
657
651
  * success
@@ -7,7 +7,7 @@ export class ChatWithKnowledgeBaseStreamShrinkRequest extends $dara.Model {
7
7
  * @remarks
8
8
  * The instance ID.
9
9
  *
10
- * > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/86911.html) operation to query the IDs of all AnalyticDB for PostgreSQL instances in a specified region.
10
+ * > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/86911.html) operation to query the IDs of all AnalyticDB for PostgreSQL instances in a region.
11
11
  *
12
12
  * This parameter is required.
13
13
  *
@@ -17,7 +17,7 @@ export class ChatWithKnowledgeBaseStreamShrinkRequest extends $dara.Model {
17
17
  DBInstanceId?: string;
18
18
  /**
19
19
  * @remarks
20
- * Specifies whether to include the retrieved knowledge base results in the response. Default value: `false`.
20
+ * Specifies whether to return recall results. Default value: false.
21
21
  *
22
22
  * @example
23
23
  * false
@@ -25,12 +25,12 @@ export class ChatWithKnowledgeBaseStreamShrinkRequest extends $dara.Model {
25
25
  includeKnowledgeBaseResults?: boolean;
26
26
  /**
27
27
  * @remarks
28
- * Parameters for knowledge retrieval. If omitted, the API performs a chat-only operation.
28
+ * The knowledge retrieval parameter object. If this parameter is not specified, only chat is performed.
29
29
  */
30
30
  knowledgeParamsShrink?: string;
31
31
  /**
32
32
  * @remarks
33
- * An object that contains parameters for the Large Language Model (LLM) call.
33
+ * The large language model (LLM) invocation parameter object.
34
34
  *
35
35
  * This parameter is required.
36
36
  */
@@ -38,7 +38,7 @@ export class ChatWithKnowledgeBaseStreamShrinkRequest extends $dara.Model {
38
38
  ownerId?: number;
39
39
  /**
40
40
  * @remarks
41
- * A template for the system prompt. It must include placeholders such as `{{text_chunks}}`, `{{user_system_prompt}}`, `{{graph_entities}}`, and `{{graph_relations}}`. If omitted, no custom prompt template is applied.
41
+ * The system prompt template. The template must include {{ text_chunks }}, {{ user_system_prompt }}, {{ graph_entities }}, and {{ graph_relations }}. If not specified, this part does not take effect.
42
42
  *
43
43
  * @example
44
44
  * "参考以下知识回答问题:{{ text_chunks }}"
@@ -46,7 +46,7 @@ export class ChatWithKnowledgeBaseStreamShrinkRequest extends $dara.Model {
46
46
  promptParams?: string;
47
47
  /**
48
48
  * @remarks
49
- * The instance\\"s region ID.
49
+ * The ID of the region where the instance resides.
50
50
  *
51
51
  * This parameter is required.
52
52
  *
@@ -0,0 +1,41 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class PauseSaasServiceRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * cn-beijing
9
+ */
10
+ regionId?: string;
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * agdb-xxxxx
17
+ */
18
+ serviceId?: string;
19
+ static names(): { [key: string]: string } {
20
+ return {
21
+ regionId: 'RegionId',
22
+ serviceId: 'ServiceId',
23
+ };
24
+ }
25
+
26
+ static types(): { [key: string]: any } {
27
+ return {
28
+ regionId: 'string',
29
+ serviceId: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ super.validate();
35
+ }
36
+
37
+ constructor(map?: { [key: string]: any }) {
38
+ super(map);
39
+ }
40
+ }
41
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { PauseSaasServiceResponseBody } from "./PauseSaasServiceResponseBody";
4
+
5
+
6
+ export class PauseSaasServiceResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: PauseSaasServiceResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: PauseSaasServiceResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,38 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class PauseSaasServiceResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * ABB39CC3-4488-4857-905D-2E4A051D0521
9
+ */
10
+ requestId?: string;
11
+ /**
12
+ * @example
13
+ * drama-123456
14
+ */
15
+ serviceId?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ requestId: 'RequestId',
19
+ serviceId: 'ServiceId',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ requestId: 'string',
26
+ serviceId: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+