@@ -32461,6 +32461,7 @@ export class CreateDifyInstanceRequest extends $dara.Model {
3246132461 dbStorageSize?: string;
3246232462 dbStorageType?: string;
3246332463 dryRun?: boolean;
32464+ gpuNodeSpec?: string;
3246432465 kvStoreAccount?: string;
3246532466 kvStoreEngineVersion?: string;
3246632467 kvStoreInstanceClass?: string;
@@ -32469,6 +32470,12 @@ export class CreateDifyInstanceRequest extends $dara.Model {
3246932470 kvStorePassword?: string;
3247032471 kvStoreResourceId?: number;
3247132472 kvStoreType?: string;
32473+ modelId?: string;
32474+ /**
32475+ * @example
32476+ * Disable
32477+ */
32478+ modelOption?: string;
3247232479 ossPath?: string;
3247332480 ossResourceId?: number;
3247432481 payPeriod?: number;
@@ -32533,6 +32540,7 @@ export class CreateDifyInstanceRequest extends $dara.Model {
3253332540 dbStorageSize: 'DbStorageSize',
3253432541 dbStorageType: 'DbStorageType',
3253532542 dryRun: 'DryRun',
32543+ gpuNodeSpec: 'GpuNodeSpec',
3253632544 kvStoreAccount: 'KvStoreAccount',
3253732545 kvStoreEngineVersion: 'KvStoreEngineVersion',
3253832546 kvStoreInstanceClass: 'KvStoreInstanceClass',
@@ -32541,6 +32549,8 @@ export class CreateDifyInstanceRequest extends $dara.Model {
3254132549 kvStorePassword: 'KvStorePassword',
3254232550 kvStoreResourceId: 'KvStoreResourceId',
3254332551 kvStoreType: 'KvStoreType',
32552+ modelId: 'ModelId',
32553+ modelOption: 'ModelOption',
3254432554 ossPath: 'OssPath',
3254532555 ossResourceId: 'OssResourceId',
3254632556 payPeriod: 'PayPeriod',
@@ -32588,6 +32598,7 @@ export class CreateDifyInstanceRequest extends $dara.Model {
3258832598 dbStorageSize: 'string',
3258932599 dbStorageType: 'string',
3259032600 dryRun: 'boolean',
32601+ gpuNodeSpec: 'string',
3259132602 kvStoreAccount: 'string',
3259232603 kvStoreEngineVersion: 'string',
3259332604 kvStoreInstanceClass: 'string',
@@ -32596,6 +32607,8 @@ export class CreateDifyInstanceRequest extends $dara.Model {
3259632607 kvStorePassword: 'string',
3259732608 kvStoreResourceId: 'number',
3259832609 kvStoreType: 'string',
32610+ modelId: 'string',
32611+ modelOption: 'string',
3259932612 ossPath: 'string',
3260032613 ossResourceId: 'number',
3260132614 payPeriod: 'number',
@@ -73240,6 +73253,129 @@ export class UpdateTaskContentResponse extends $dara.Model {
7324073253 }
7324173254}
7324273255
73256+ export class UpdateTaskContentV2Request extends $dara.Model {
73257+ /**
73258+ * @example
73259+ * { "dbId":12****, "sql":"select * from test_table", "dbType":"lindorm_sql" }
73260+ */
73261+ nodeContent?: string;
73262+ /**
73263+ * @remarks
73264+ * This parameter is required.
73265+ *
73266+ * @example
73267+ * 449***
73268+ */
73269+ nodeId?: string;
73270+ static names(): { [key: string]: string } {
73271+ return {
73272+ nodeContent: 'NodeContent',
73273+ nodeId: 'NodeId',
73274+ };
73275+ }
73276+
73277+ static types(): { [key: string]: any } {
73278+ return {
73279+ nodeContent: 'string',
73280+ nodeId: 'string',
73281+ };
73282+ }
73283+
73284+ validate() {
73285+ super.validate();
73286+ }
73287+
73288+ constructor(map?: { [key: string]: any }) {
73289+ super(map);
73290+ }
73291+ }
73292+
73293+ export class UpdateTaskContentV2ResponseBody extends $dara.Model {
73294+ /**
73295+ * @example
73296+ * UnknownError
73297+ */
73298+ errorCode?: string;
73299+ /**
73300+ * @example
73301+ * UnknownError
73302+ */
73303+ errorMessage?: string;
73304+ /**
73305+ * @remarks
73306+ * Id of the request
73307+ *
73308+ * @example
73309+ * B5FD0BC8-2D90-4478-B8EC-A0E92E0B1773
73310+ */
73311+ requestId?: string;
73312+ /**
73313+ * @example
73314+ * true
73315+ */
73316+ success?: string;
73317+ static names(): { [key: string]: string } {
73318+ return {
73319+ errorCode: 'ErrorCode',
73320+ errorMessage: 'ErrorMessage',
73321+ requestId: 'RequestId',
73322+ success: 'Success',
73323+ };
73324+ }
73325+
73326+ static types(): { [key: string]: any } {
73327+ return {
73328+ errorCode: 'string',
73329+ errorMessage: 'string',
73330+ requestId: 'string',
73331+ success: 'string',
73332+ };
73333+ }
73334+
73335+ validate() {
73336+ super.validate();
73337+ }
73338+
73339+ constructor(map?: { [key: string]: any }) {
73340+ super(map);
73341+ }
73342+ }
73343+
73344+ export class UpdateTaskContentV2Response extends $dara.Model {
73345+ headers?: { [key: string]: string };
73346+ statusCode?: number;
73347+ body?: UpdateTaskContentV2ResponseBody;
73348+ static names(): { [key: string]: string } {
73349+ return {
73350+ headers: 'headers',
73351+ statusCode: 'statusCode',
73352+ body: 'body',
73353+ };
73354+ }
73355+
73356+ static types(): { [key: string]: any } {
73357+ return {
73358+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
73359+ statusCode: 'number',
73360+ body: UpdateTaskContentV2ResponseBody,
73361+ };
73362+ }
73363+
73364+ validate() {
73365+ if(this.headers) {
73366+ $dara.Model.validateMap(this.headers);
73367+ }
73368+ if(this.body && typeof (this.body as any).validate === 'function') {
73369+ (this.body as any).validate();
73370+ }
73371+ super.validate();
73372+ }
73373+
73374+ constructor(map?: { [key: string]: any }) {
73375+ super(map);
73376+ }
73377+ }
73378+
7324373379export class UpdateTaskFlowConstantsRequest extends $dara.Model {
7324473380 /**
7324573381 * @remarks
@@ -78045,6 +78181,10 @@ export default class Client extends OpenApi {
7804578181 query["DryRun"] = request.dryRun;
7804678182 }
7804778183
78184+ if (!$dara.isNull(request.gpuNodeSpec)) {
78185+ query["GpuNodeSpec"] = request.gpuNodeSpec;
78186+ }
78187+
7804878188 if (!$dara.isNull(request.kvStoreAccount)) {
7804978189 query["KvStoreAccount"] = request.kvStoreAccount;
7805078190 }
@@ -78077,6 +78217,14 @@ export default class Client extends OpenApi {
7807778217 query["KvStoreType"] = request.kvStoreType;
7807878218 }
7807978219
78220+ if (!$dara.isNull(request.modelId)) {
78221+ query["ModelId"] = request.modelId;
78222+ }
78223+
78224+ if (!$dara.isNull(request.modelOption)) {
78225+ query["ModelOption"] = request.modelOption;
78226+ }
78227+
7808078228 if (!$dara.isNull(request.ossPath)) {
7808178229 query["OssPath"] = request.ossPath;
7808278230 }
@@ -92534,6 +92682,59 @@ export default class Client extends OpenApi {
9253492682 return await this.updateTaskContentWithOptions(request, runtime);
9253592683 }
9253692684
92685+ /**
92686+ * 接受大容量sql文件的更新节点内容API
92687+ *
92688+ * @param request - UpdateTaskContentV2Request
92689+ * @param runtime - runtime options for this request RuntimeOptions
92690+ * @returns UpdateTaskContentV2Response
92691+ */
92692+ async updateTaskContentV2WithOptions(request: UpdateTaskContentV2Request, runtime: $dara.RuntimeOptions): Promise<UpdateTaskContentV2Response> {
92693+ request.validate();
92694+ let query = { };
92695+ if (!$dara.isNull(request.nodeId)) {
92696+ query["NodeId"] = request.nodeId;
92697+ }
92698+
92699+ let body : {[key: string ]: any} = { };
92700+ if (!$dara.isNull(request.nodeContent)) {
92701+ body["NodeContent"] = request.nodeContent;
92702+ }
92703+
92704+ let req = new $OpenApiUtil.OpenApiRequest({
92705+ query: OpenApiUtil.query(query),
92706+ body: OpenApiUtil.parseToMap(body),
92707+ });
92708+ let params = new $OpenApiUtil.Params({
92709+ action: "UpdateTaskContentV2",
92710+ version: "2018-11-01",
92711+ protocol: "HTTPS",
92712+ pathname: "/",
92713+ method: "POST",
92714+ authType: "AK",
92715+ style: "RPC",
92716+ reqBodyType: "formData",
92717+ bodyType: "json",
92718+ });
92719+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
92720+ return $dara.cast<UpdateTaskContentV2Response>(await this.callApi(params, req, runtime), new UpdateTaskContentV2Response({}));
92721+ } else {
92722+ return $dara.cast<UpdateTaskContentV2Response>(await this.execute(params, req, runtime), new UpdateTaskContentV2Response({}));
92723+ }
92724+
92725+ }
92726+
92727+ /**
92728+ * 接受大容量sql文件的更新节点内容API
92729+ *
92730+ * @param request - UpdateTaskContentV2Request
92731+ * @returns UpdateTaskContentV2Response
92732+ */
92733+ async updateTaskContentV2(request: UpdateTaskContentV2Request): Promise<UpdateTaskContentV2Response> {
92734+ let runtime = new $dara.RuntimeOptions({ });
92735+ return await this.updateTaskContentV2WithOptions(request, runtime);
92736+ }
92737+
9253792738 /**
9253892739 * Updates the constants for a specified task flow.
9253992740 *
0 commit comments