You've already forked npm-core-sdk
Latest generation
This commit is contained in:
33
workflow.ts
33
workflow.ts
@@ -11,9 +11,8 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
||||
import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { EntityType } from "./shared";
|
||||
import { RecoverType } from "./shared";
|
||||
import { ModelDataSetEnum } from "./shared";
|
||||
import { EntityType } from "./shared";
|
||||
import { ModuleWorkflowTypeEnum } from "./shared";
|
||||
import { WorkflowTypeEnum } from "./shared";
|
||||
import { ModuleDeregistration } from "./shared";
|
||||
@@ -610,9 +609,9 @@ export interface StartWorkflowRecoverDataRequest {
|
||||
*/
|
||||
ProjectID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.ModelDataSetEnum Entity = 2
|
||||
* @generated from protobuf field: api.EntityType Entity = 2
|
||||
*/
|
||||
Entity: ModelDataSetEnum;
|
||||
Entity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: api.RecoverType RecoveryType = 3
|
||||
*/
|
||||
@@ -644,9 +643,9 @@ export interface StartWorkflowRecoverDataResult {
|
||||
*/
|
||||
export interface StartWorkflowCheckAndLaunchRecoverDataRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.ModelDataSetEnum Entity = 1
|
||||
* @generated from protobuf field: api.EntityType Entity = 1
|
||||
*/
|
||||
Entity: ModelDataSetEnum;
|
||||
Entity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: api.RecoverType RecoveryType = 2
|
||||
*/
|
||||
@@ -818,9 +817,9 @@ export interface StartWorkflowUpgradeModelRequest {
|
||||
*/
|
||||
ProjectID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.ModelDataSetEnum Entity = 3
|
||||
* @generated from protobuf field: api.EntityType Entity = 3
|
||||
*/
|
||||
Entity: ModelDataSetEnum;
|
||||
Entity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: bool ClearEntityData = 4
|
||||
*/
|
||||
@@ -3159,7 +3158,7 @@ class StartWorkflowRecoverDataRequest$Type extends MessageType<StartWorkflowReco
|
||||
constructor() {
|
||||
super("api.StartWorkflowRecoverDataRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.ModelDataSetEnum", ModelDataSetEnum] },
|
||||
{ no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType] },
|
||||
{ no: 3, name: "RecoveryType", kind: "enum", localName: "RecoveryType", jsonName: "RecoveryType", T: () => ["api.RecoverType", RecoverType] },
|
||||
{ no: 4, name: "ClearEntityData", kind: "scalar", localName: "ClearEntityData", jsonName: "ClearEntityData", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 6, name: "RestartJob", kind: "scalar", localName: "RestartJob", jsonName: "RestartJob", T: 8 /*ScalarType.BOOL*/ },
|
||||
@@ -3186,7 +3185,7 @@ class StartWorkflowRecoverDataRequest$Type extends MessageType<StartWorkflowReco
|
||||
case /* string ProjectID */ 1:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* api.ModelDataSetEnum Entity */ 2:
|
||||
case /* api.EntityType Entity */ 2:
|
||||
message.Entity = reader.int32();
|
||||
break;
|
||||
case /* api.RecoverType RecoveryType */ 3:
|
||||
@@ -3216,7 +3215,7 @@ class StartWorkflowRecoverDataRequest$Type extends MessageType<StartWorkflowReco
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* api.ModelDataSetEnum Entity = 2; */
|
||||
/* api.EntityType Entity = 2; */
|
||||
if (message.Entity !== 0)
|
||||
writer.tag(2, WireType.Varint).int32(message.Entity);
|
||||
/* api.RecoverType RecoveryType = 3; */
|
||||
@@ -3291,7 +3290,7 @@ export const StartWorkflowRecoverDataResult = new StartWorkflowRecoverDataResult
|
||||
class StartWorkflowCheckAndLaunchRecoverDataRequest$Type extends MessageType<StartWorkflowCheckAndLaunchRecoverDataRequest> {
|
||||
constructor() {
|
||||
super("api.StartWorkflowCheckAndLaunchRecoverDataRequest", [
|
||||
{ no: 1, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.ModelDataSetEnum", ModelDataSetEnum] },
|
||||
{ no: 1, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType] },
|
||||
{ no: 2, name: "RecoveryType", kind: "enum", localName: "RecoveryType", jsonName: "RecoveryType", T: () => ["api.RecoverType", RecoverType] }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Entity", "RecoveryType"] } } });
|
||||
}
|
||||
@@ -3308,7 +3307,7 @@ class StartWorkflowCheckAndLaunchRecoverDataRequest$Type extends MessageType<Sta
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ModelDataSetEnum Entity */ 1:
|
||||
case /* api.EntityType Entity */ 1:
|
||||
message.Entity = reader.int32();
|
||||
break;
|
||||
case /* api.RecoverType RecoveryType */ 2:
|
||||
@@ -3326,7 +3325,7 @@ class StartWorkflowCheckAndLaunchRecoverDataRequest$Type extends MessageType<Sta
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: StartWorkflowCheckAndLaunchRecoverDataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ModelDataSetEnum Entity = 1; */
|
||||
/* api.EntityType Entity = 1; */
|
||||
if (message.Entity !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.Entity);
|
||||
/* api.RecoverType RecoveryType = 2; */
|
||||
@@ -4135,7 +4134,7 @@ class StartWorkflowUpgradeModelRequest$Type extends MessageType<StartWorkflowUpg
|
||||
super("api.StartWorkflowUpgradeModelRequest", [
|
||||
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.ModelDataSetEnum", ModelDataSetEnum] },
|
||||
{ no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType] },
|
||||
{ no: 4, name: "ClearEntityData", kind: "scalar", localName: "ClearEntityData", jsonName: "ClearEntityData", T: 8 /*ScalarType.BOOL*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: {} } });
|
||||
}
|
||||
@@ -4160,7 +4159,7 @@ class StartWorkflowUpgradeModelRequest$Type extends MessageType<StartWorkflowUpg
|
||||
case /* string ProjectID */ 2:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* api.ModelDataSetEnum Entity */ 3:
|
||||
case /* api.EntityType Entity */ 3:
|
||||
message.Entity = reader.int32();
|
||||
break;
|
||||
case /* bool ClearEntityData */ 4:
|
||||
@@ -4184,7 +4183,7 @@ class StartWorkflowUpgradeModelRequest$Type extends MessageType<StartWorkflowUpg
|
||||
/* string ProjectID = 2; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* api.ModelDataSetEnum Entity = 3; */
|
||||
/* api.EntityType Entity = 3; */
|
||||
if (message.Entity !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.Entity);
|
||||
/* bool ClearEntityData = 4; */
|
||||
|
||||
Reference in New Issue
Block a user