@toshicloud/sdk 0.5.1 → 0.6.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.
- package/README.md +59 -4
- package/dist/client.d.ts +72 -4
- package/dist/client.js +16 -2
- package/dist/gen/toshi/workspace/v1/connections_pb.d.ts +164 -29
- package/dist/gen/toshi/workspace/v1/connections_pb.js +39 -23
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +16 -2
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +27 -1
- package/dist/gen/toshi/workspace/v1/workloads_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +352 -4
- package/dist/gen/toshi/workspace/v1/workspace_pb.js +157 -51
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +289 -4
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +70 -50
- package/dist/retry.js +5 -0
- package/dist/test/alarms.d.ts +29 -0
- package/dist/test/alarms.js +144 -0
- package/dist/test/fake.js +31 -0
- package/dist/test/index.d.ts +12 -2
- package/dist/test/index.js +12 -2
- package/dist/test/procedures.js +5 -9
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -790,6 +790,34 @@ export type SandboxStatus = Message<"toshi.workspace.v1.SandboxStatus"> & {
|
|
|
790
790
|
* @generated from field: google.protobuf.Timestamp stopped_at = 13;
|
|
791
791
|
*/
|
|
792
792
|
stoppedAt?: Timestamp | undefined;
|
|
793
|
+
/**
|
|
794
|
+
* The cause of a policy stop; unspecified for another stop.
|
|
795
|
+
*
|
|
796
|
+
* @generated from field: toshi.workspace.v1.StopCause stop_cause = 14;
|
|
797
|
+
*/
|
|
798
|
+
stopCause: StopCause;
|
|
799
|
+
/**
|
|
800
|
+
* While held, its owner cannot start, wake or delete it and its public
|
|
801
|
+
* names answer a page naming the hold; only an operator releases it.
|
|
802
|
+
*
|
|
803
|
+
* @generated from field: toshi.workspace.v1.OperatorHold operator_hold = 15;
|
|
804
|
+
*/
|
|
805
|
+
operatorHold: OperatorHold;
|
|
806
|
+
/**
|
|
807
|
+
* When the current operator hold was placed; unset when not held.
|
|
808
|
+
*
|
|
809
|
+
* @generated from field: google.protobuf.Timestamp held_at = 16;
|
|
810
|
+
*/
|
|
811
|
+
heldAt?: Timestamp | undefined;
|
|
812
|
+
/**
|
|
813
|
+
* Where its owner writes about the hold, as the deployment's operator set
|
|
814
|
+
* it: an email address or a URL. Set only while the workload is held and
|
|
815
|
+
* the operator set one; empty otherwise. Set by Toshi; ignored in a
|
|
816
|
+
* request.
|
|
817
|
+
*
|
|
818
|
+
* @generated from field: string hold_contact = 17;
|
|
819
|
+
*/
|
|
820
|
+
holdContact: string;
|
|
793
821
|
};
|
|
794
822
|
/**
|
|
795
823
|
* SandboxStatus is a sandbox's state and when it got there.
|
|
@@ -873,6 +901,34 @@ export type SandboxStatusJson = {
|
|
|
873
901
|
* @generated from field: google.protobuf.Timestamp stopped_at = 13;
|
|
874
902
|
*/
|
|
875
903
|
stoppedAt?: TimestampJson;
|
|
904
|
+
/**
|
|
905
|
+
* The cause of a policy stop; unspecified for another stop.
|
|
906
|
+
*
|
|
907
|
+
* @generated from field: toshi.workspace.v1.StopCause stop_cause = 14;
|
|
908
|
+
*/
|
|
909
|
+
stopCause?: StopCauseJson;
|
|
910
|
+
/**
|
|
911
|
+
* While held, its owner cannot start, wake or delete it and its public
|
|
912
|
+
* names answer a page naming the hold; only an operator releases it.
|
|
913
|
+
*
|
|
914
|
+
* @generated from field: toshi.workspace.v1.OperatorHold operator_hold = 15;
|
|
915
|
+
*/
|
|
916
|
+
operatorHold?: OperatorHoldJson;
|
|
917
|
+
/**
|
|
918
|
+
* When the current operator hold was placed; unset when not held.
|
|
919
|
+
*
|
|
920
|
+
* @generated from field: google.protobuf.Timestamp held_at = 16;
|
|
921
|
+
*/
|
|
922
|
+
heldAt?: TimestampJson;
|
|
923
|
+
/**
|
|
924
|
+
* Where its owner writes about the hold, as the deployment's operator set
|
|
925
|
+
* it: an email address or a URL. Set only while the workload is held and
|
|
926
|
+
* the operator set one; empty otherwise. Set by Toshi; ignored in a
|
|
927
|
+
* request.
|
|
928
|
+
*
|
|
929
|
+
* @generated from field: string hold_contact = 17;
|
|
930
|
+
*/
|
|
931
|
+
holdContact?: string;
|
|
876
932
|
};
|
|
877
933
|
/**
|
|
878
934
|
* Describes the message toshi.workspace.v1.SandboxStatus.
|
|
@@ -1324,6 +1380,40 @@ export type ServiceStatus = Message<"toshi.workspace.v1.ServiceStatus"> & {
|
|
|
1324
1380
|
* @generated from field: toshi.workspace.v1.ServiceBackup backup = 12;
|
|
1325
1381
|
*/
|
|
1326
1382
|
backup?: ServiceBackup | undefined;
|
|
1383
|
+
/**
|
|
1384
|
+
* Why it was stopped.
|
|
1385
|
+
*
|
|
1386
|
+
* @generated from field: toshi.workspace.v1.StopReason stop_reason = 13;
|
|
1387
|
+
*/
|
|
1388
|
+
stopReason: StopReason;
|
|
1389
|
+
/**
|
|
1390
|
+
* The cause of a policy stop; unspecified for another stop.
|
|
1391
|
+
*
|
|
1392
|
+
* @generated from field: toshi.workspace.v1.StopCause stop_cause = 14;
|
|
1393
|
+
*/
|
|
1394
|
+
stopCause: StopCause;
|
|
1395
|
+
/**
|
|
1396
|
+
* While held, its owner cannot start, wake or delete it and its public
|
|
1397
|
+
* names answer a page naming the hold; only an operator releases it.
|
|
1398
|
+
*
|
|
1399
|
+
* @generated from field: toshi.workspace.v1.OperatorHold operator_hold = 15;
|
|
1400
|
+
*/
|
|
1401
|
+
operatorHold: OperatorHold;
|
|
1402
|
+
/**
|
|
1403
|
+
* When the current operator hold was placed; unset when not held.
|
|
1404
|
+
*
|
|
1405
|
+
* @generated from field: google.protobuf.Timestamp held_at = 16;
|
|
1406
|
+
*/
|
|
1407
|
+
heldAt?: Timestamp | undefined;
|
|
1408
|
+
/**
|
|
1409
|
+
* Where its owner writes about the hold, as the deployment's operator set
|
|
1410
|
+
* it: an email address or a URL. Set only while the workload is held and
|
|
1411
|
+
* the operator set one; empty otherwise. Set by Toshi; ignored in a
|
|
1412
|
+
* request.
|
|
1413
|
+
*
|
|
1414
|
+
* @generated from field: string hold_contact = 17;
|
|
1415
|
+
*/
|
|
1416
|
+
holdContact: string;
|
|
1327
1417
|
};
|
|
1328
1418
|
/**
|
|
1329
1419
|
* ServiceStatus is a service's state and when it got there.
|
|
@@ -1405,6 +1495,40 @@ export type ServiceStatusJson = {
|
|
|
1405
1495
|
* @generated from field: toshi.workspace.v1.ServiceBackup backup = 12;
|
|
1406
1496
|
*/
|
|
1407
1497
|
backup?: ServiceBackupJson;
|
|
1498
|
+
/**
|
|
1499
|
+
* Why it was stopped.
|
|
1500
|
+
*
|
|
1501
|
+
* @generated from field: toshi.workspace.v1.StopReason stop_reason = 13;
|
|
1502
|
+
*/
|
|
1503
|
+
stopReason?: StopReasonJson;
|
|
1504
|
+
/**
|
|
1505
|
+
* The cause of a policy stop; unspecified for another stop.
|
|
1506
|
+
*
|
|
1507
|
+
* @generated from field: toshi.workspace.v1.StopCause stop_cause = 14;
|
|
1508
|
+
*/
|
|
1509
|
+
stopCause?: StopCauseJson;
|
|
1510
|
+
/**
|
|
1511
|
+
* While held, its owner cannot start, wake or delete it and its public
|
|
1512
|
+
* names answer a page naming the hold; only an operator releases it.
|
|
1513
|
+
*
|
|
1514
|
+
* @generated from field: toshi.workspace.v1.OperatorHold operator_hold = 15;
|
|
1515
|
+
*/
|
|
1516
|
+
operatorHold?: OperatorHoldJson;
|
|
1517
|
+
/**
|
|
1518
|
+
* When the current operator hold was placed; unset when not held.
|
|
1519
|
+
*
|
|
1520
|
+
* @generated from field: google.protobuf.Timestamp held_at = 16;
|
|
1521
|
+
*/
|
|
1522
|
+
heldAt?: TimestampJson;
|
|
1523
|
+
/**
|
|
1524
|
+
* Where its owner writes about the hold, as the deployment's operator set
|
|
1525
|
+
* it: an email address or a URL. Set only while the workload is held and
|
|
1526
|
+
* the operator set one; empty otherwise. Set by Toshi; ignored in a
|
|
1527
|
+
* request.
|
|
1528
|
+
*
|
|
1529
|
+
* @generated from field: string hold_contact = 17;
|
|
1530
|
+
*/
|
|
1531
|
+
holdContact?: string;
|
|
1408
1532
|
};
|
|
1409
1533
|
/**
|
|
1410
1534
|
* Describes the message toshi.workspace.v1.ServiceStatus.
|
|
@@ -7716,6 +7840,134 @@ export type WakeServiceResponseJson = {
|
|
|
7716
7840
|
export declare const WakeServiceResponseSchema: GenMessage<WakeServiceResponse, {
|
|
7717
7841
|
jsonType: WakeServiceResponseJson;
|
|
7718
7842
|
}>;
|
|
7843
|
+
/**
|
|
7844
|
+
* HoldWorkloadRequest names the sandbox or service and its operator hold.
|
|
7845
|
+
*
|
|
7846
|
+
* @generated from message toshi.workspace.v1.HoldWorkloadRequest
|
|
7847
|
+
*/
|
|
7848
|
+
export type HoldWorkloadRequest = Message<"toshi.workspace.v1.HoldWorkloadRequest"> & {
|
|
7849
|
+
/**
|
|
7850
|
+
* @generated from field: string project = 1;
|
|
7851
|
+
*/
|
|
7852
|
+
project: string;
|
|
7853
|
+
/**
|
|
7854
|
+
* @generated from field: string environment = 2;
|
|
7855
|
+
*/
|
|
7856
|
+
environment: string;
|
|
7857
|
+
/**
|
|
7858
|
+
* @generated from field: string workload_id = 3;
|
|
7859
|
+
*/
|
|
7860
|
+
workloadId: string;
|
|
7861
|
+
/**
|
|
7862
|
+
* @generated from field: toshi.workspace.v1.OperatorHold hold = 4;
|
|
7863
|
+
*/
|
|
7864
|
+
hold: OperatorHold;
|
|
7865
|
+
};
|
|
7866
|
+
/**
|
|
7867
|
+
* HoldWorkloadRequest names the sandbox or service and its operator hold.
|
|
7868
|
+
*
|
|
7869
|
+
* @generated from message toshi.workspace.v1.HoldWorkloadRequest
|
|
7870
|
+
*/
|
|
7871
|
+
export type HoldWorkloadRequestJson = {
|
|
7872
|
+
/**
|
|
7873
|
+
* @generated from field: string project = 1;
|
|
7874
|
+
*/
|
|
7875
|
+
project?: string;
|
|
7876
|
+
/**
|
|
7877
|
+
* @generated from field: string environment = 2;
|
|
7878
|
+
*/
|
|
7879
|
+
environment?: string;
|
|
7880
|
+
/**
|
|
7881
|
+
* @generated from field: string workload_id = 3;
|
|
7882
|
+
*/
|
|
7883
|
+
workloadId?: string;
|
|
7884
|
+
/**
|
|
7885
|
+
* @generated from field: toshi.workspace.v1.OperatorHold hold = 4;
|
|
7886
|
+
*/
|
|
7887
|
+
hold?: OperatorHoldJson;
|
|
7888
|
+
};
|
|
7889
|
+
/**
|
|
7890
|
+
* Describes the message toshi.workspace.v1.HoldWorkloadRequest.
|
|
7891
|
+
* Use `create(HoldWorkloadRequestSchema)` to create a new message.
|
|
7892
|
+
*/
|
|
7893
|
+
export declare const HoldWorkloadRequestSchema: GenMessage<HoldWorkloadRequest, {
|
|
7894
|
+
jsonType: HoldWorkloadRequestJson;
|
|
7895
|
+
}>;
|
|
7896
|
+
/**
|
|
7897
|
+
* @generated from message toshi.workspace.v1.HoldWorkloadResponse
|
|
7898
|
+
*/
|
|
7899
|
+
export type HoldWorkloadResponse = Message<"toshi.workspace.v1.HoldWorkloadResponse"> & {};
|
|
7900
|
+
/**
|
|
7901
|
+
* @generated from message toshi.workspace.v1.HoldWorkloadResponse
|
|
7902
|
+
*/
|
|
7903
|
+
export type HoldWorkloadResponseJson = {};
|
|
7904
|
+
/**
|
|
7905
|
+
* Describes the message toshi.workspace.v1.HoldWorkloadResponse.
|
|
7906
|
+
* Use `create(HoldWorkloadResponseSchema)` to create a new message.
|
|
7907
|
+
*/
|
|
7908
|
+
export declare const HoldWorkloadResponseSchema: GenMessage<HoldWorkloadResponse, {
|
|
7909
|
+
jsonType: HoldWorkloadResponseJson;
|
|
7910
|
+
}>;
|
|
7911
|
+
/**
|
|
7912
|
+
* ReleaseWorkloadRequest names the sandbox or service to release.
|
|
7913
|
+
*
|
|
7914
|
+
* @generated from message toshi.workspace.v1.ReleaseWorkloadRequest
|
|
7915
|
+
*/
|
|
7916
|
+
export type ReleaseWorkloadRequest = Message<"toshi.workspace.v1.ReleaseWorkloadRequest"> & {
|
|
7917
|
+
/**
|
|
7918
|
+
* @generated from field: string project = 1;
|
|
7919
|
+
*/
|
|
7920
|
+
project: string;
|
|
7921
|
+
/**
|
|
7922
|
+
* @generated from field: string environment = 2;
|
|
7923
|
+
*/
|
|
7924
|
+
environment: string;
|
|
7925
|
+
/**
|
|
7926
|
+
* @generated from field: string workload_id = 3;
|
|
7927
|
+
*/
|
|
7928
|
+
workloadId: string;
|
|
7929
|
+
};
|
|
7930
|
+
/**
|
|
7931
|
+
* ReleaseWorkloadRequest names the sandbox or service to release.
|
|
7932
|
+
*
|
|
7933
|
+
* @generated from message toshi.workspace.v1.ReleaseWorkloadRequest
|
|
7934
|
+
*/
|
|
7935
|
+
export type ReleaseWorkloadRequestJson = {
|
|
7936
|
+
/**
|
|
7937
|
+
* @generated from field: string project = 1;
|
|
7938
|
+
*/
|
|
7939
|
+
project?: string;
|
|
7940
|
+
/**
|
|
7941
|
+
* @generated from field: string environment = 2;
|
|
7942
|
+
*/
|
|
7943
|
+
environment?: string;
|
|
7944
|
+
/**
|
|
7945
|
+
* @generated from field: string workload_id = 3;
|
|
7946
|
+
*/
|
|
7947
|
+
workloadId?: string;
|
|
7948
|
+
};
|
|
7949
|
+
/**
|
|
7950
|
+
* Describes the message toshi.workspace.v1.ReleaseWorkloadRequest.
|
|
7951
|
+
* Use `create(ReleaseWorkloadRequestSchema)` to create a new message.
|
|
7952
|
+
*/
|
|
7953
|
+
export declare const ReleaseWorkloadRequestSchema: GenMessage<ReleaseWorkloadRequest, {
|
|
7954
|
+
jsonType: ReleaseWorkloadRequestJson;
|
|
7955
|
+
}>;
|
|
7956
|
+
/**
|
|
7957
|
+
* @generated from message toshi.workspace.v1.ReleaseWorkloadResponse
|
|
7958
|
+
*/
|
|
7959
|
+
export type ReleaseWorkloadResponse = Message<"toshi.workspace.v1.ReleaseWorkloadResponse"> & {};
|
|
7960
|
+
/**
|
|
7961
|
+
* @generated from message toshi.workspace.v1.ReleaseWorkloadResponse
|
|
7962
|
+
*/
|
|
7963
|
+
export type ReleaseWorkloadResponseJson = {};
|
|
7964
|
+
/**
|
|
7965
|
+
* Describes the message toshi.workspace.v1.ReleaseWorkloadResponse.
|
|
7966
|
+
* Use `create(ReleaseWorkloadResponseSchema)` to create a new message.
|
|
7967
|
+
*/
|
|
7968
|
+
export declare const ReleaseWorkloadResponseSchema: GenMessage<ReleaseWorkloadResponse, {
|
|
7969
|
+
jsonType: ReleaseWorkloadResponseJson;
|
|
7970
|
+
}>;
|
|
7719
7971
|
/**
|
|
7720
7972
|
* @generated from message toshi.workspace.v1.HoldServiceRequest
|
|
7721
7973
|
*/
|
|
@@ -9790,7 +10042,7 @@ export type EndReasonJson = "END_REASON_UNSPECIFIED" | "END_REASON_EXITED" | "EN
|
|
|
9790
10042
|
*/
|
|
9791
10043
|
export declare const EndReasonSchema: GenEnum<EndReason, EndReasonJson>;
|
|
9792
10044
|
/**
|
|
9793
|
-
* StopReason is why a sandbox was stopped.
|
|
10045
|
+
* StopReason is why a sandbox or service was stopped.
|
|
9794
10046
|
*
|
|
9795
10047
|
* @generated from enum toshi.workspace.v1.StopReason
|
|
9796
10048
|
*/
|
|
@@ -9834,18 +10086,114 @@ export declare enum StopReason {
|
|
|
9834
10086
|
*
|
|
9835
10087
|
* @generated from enum value: STOP_REASON_OPERATOR = 6;
|
|
9836
10088
|
*/
|
|
9837
|
-
OPERATOR = 6
|
|
10089
|
+
OPERATOR = 6,
|
|
10090
|
+
/**
|
|
10091
|
+
* Toshi stopped it for a policy; stop_cause says which.
|
|
10092
|
+
*
|
|
10093
|
+
* @generated from enum value: STOP_REASON_POLICY = 7;
|
|
10094
|
+
*/
|
|
10095
|
+
POLICY = 7
|
|
9838
10096
|
}
|
|
9839
10097
|
/**
|
|
9840
|
-
* StopReason is why a sandbox was stopped.
|
|
10098
|
+
* StopReason is why a sandbox or service was stopped.
|
|
9841
10099
|
*
|
|
9842
10100
|
* @generated from enum toshi.workspace.v1.StopReason
|
|
9843
10101
|
*/
|
|
9844
|
-
export type StopReasonJson = "STOP_REASON_UNSPECIFIED" | "STOP_REASON_OWNER" | "STOP_REASON_MAX_DURATION" | "STOP_REASON_SPEND_CAP" | "STOP_REASON_TENANT_SUSPENDED" | "STOP_REASON_TENANT_DELETED" | "STOP_REASON_OPERATOR";
|
|
10102
|
+
export type StopReasonJson = "STOP_REASON_UNSPECIFIED" | "STOP_REASON_OWNER" | "STOP_REASON_MAX_DURATION" | "STOP_REASON_SPEND_CAP" | "STOP_REASON_TENANT_SUSPENDED" | "STOP_REASON_TENANT_DELETED" | "STOP_REASON_OPERATOR" | "STOP_REASON_POLICY";
|
|
9845
10103
|
/**
|
|
9846
10104
|
* Describes the enum toshi.workspace.v1.StopReason.
|
|
9847
10105
|
*/
|
|
9848
10106
|
export declare const StopReasonSchema: GenEnum<StopReason, StopReasonJson>;
|
|
10107
|
+
/**
|
|
10108
|
+
* StopCause identifies the policy behind a stop.
|
|
10109
|
+
*
|
|
10110
|
+
* @generated from enum toshi.workspace.v1.StopCause
|
|
10111
|
+
*/
|
|
10112
|
+
export declare enum StopCause {
|
|
10113
|
+
/**
|
|
10114
|
+
* @generated from enum value: STOP_CAUSE_UNSPECIFIED = 0;
|
|
10115
|
+
*/
|
|
10116
|
+
UNSPECIFIED = 0,
|
|
10117
|
+
/**
|
|
10118
|
+
* Executions exceeded their rate.
|
|
10119
|
+
*
|
|
10120
|
+
* @generated from enum value: STOP_CAUSE_EXEC_RATE = 1;
|
|
10121
|
+
*/
|
|
10122
|
+
EXEC_RATE = 1,
|
|
10123
|
+
/**
|
|
10124
|
+
* Outbound connections exceeded their rate.
|
|
10125
|
+
*
|
|
10126
|
+
* @generated from enum value: STOP_CAUSE_CONNECTION_RATE = 2;
|
|
10127
|
+
*/
|
|
10128
|
+
CONNECTION_RATE = 2,
|
|
10129
|
+
/**
|
|
10130
|
+
* Requests at its public names exceeded their rate.
|
|
10131
|
+
*
|
|
10132
|
+
* @generated from enum value: STOP_CAUSE_REQUEST_RATE = 3;
|
|
10133
|
+
*/
|
|
10134
|
+
REQUEST_RATE = 3,
|
|
10135
|
+
/**
|
|
10136
|
+
* Its CPU and traffic looked like mining.
|
|
10137
|
+
*
|
|
10138
|
+
* @generated from enum value: STOP_CAUSE_MINING = 4;
|
|
10139
|
+
*/
|
|
10140
|
+
MINING = 4,
|
|
10141
|
+
/**
|
|
10142
|
+
* An operator stopped it.
|
|
10143
|
+
*
|
|
10144
|
+
* @generated from enum value: STOP_CAUSE_OPERATOR = 5;
|
|
10145
|
+
*/
|
|
10146
|
+
OPERATOR = 5,
|
|
10147
|
+
/**
|
|
10148
|
+
* a job from a pull request from a fork was handed a runner whose VM could not be narrowed before it started
|
|
10149
|
+
*
|
|
10150
|
+
* @generated from enum value: STOP_CAUSE_RUNNER_SWAP = 6;
|
|
10151
|
+
*/
|
|
10152
|
+
RUNNER_SWAP = 6
|
|
10153
|
+
}
|
|
10154
|
+
/**
|
|
10155
|
+
* StopCause identifies the policy behind a stop.
|
|
10156
|
+
*
|
|
10157
|
+
* @generated from enum toshi.workspace.v1.StopCause
|
|
10158
|
+
*/
|
|
10159
|
+
export type StopCauseJson = "STOP_CAUSE_UNSPECIFIED" | "STOP_CAUSE_EXEC_RATE" | "STOP_CAUSE_CONNECTION_RATE" | "STOP_CAUSE_REQUEST_RATE" | "STOP_CAUSE_MINING" | "STOP_CAUSE_OPERATOR" | "STOP_CAUSE_RUNNER_SWAP";
|
|
10160
|
+
/**
|
|
10161
|
+
* Describes the enum toshi.workspace.v1.StopCause.
|
|
10162
|
+
*/
|
|
10163
|
+
export declare const StopCauseSchema: GenEnum<StopCause, StopCauseJson>;
|
|
10164
|
+
/**
|
|
10165
|
+
* OperatorHold is an operator's hold on a workload.
|
|
10166
|
+
*
|
|
10167
|
+
* @generated from enum toshi.workspace.v1.OperatorHold
|
|
10168
|
+
*/
|
|
10169
|
+
export declare enum OperatorHold {
|
|
10170
|
+
/**
|
|
10171
|
+
* @generated from enum value: OPERATOR_HOLD_UNSPECIFIED = 0;
|
|
10172
|
+
*/
|
|
10173
|
+
UNSPECIFIED = 0,
|
|
10174
|
+
/**
|
|
10175
|
+
* Abuse is suspected.
|
|
10176
|
+
*
|
|
10177
|
+
* @generated from enum value: OPERATOR_HOLD_ABUSE_SUSPECTED = 1;
|
|
10178
|
+
*/
|
|
10179
|
+
ABUSE_SUSPECTED = 1,
|
|
10180
|
+
/**
|
|
10181
|
+
* Abuse is confirmed.
|
|
10182
|
+
*
|
|
10183
|
+
* @generated from enum value: OPERATOR_HOLD_ABUSE_CONFIRMED = 2;
|
|
10184
|
+
*/
|
|
10185
|
+
ABUSE_CONFIRMED = 2
|
|
10186
|
+
}
|
|
10187
|
+
/**
|
|
10188
|
+
* OperatorHold is an operator's hold on a workload.
|
|
10189
|
+
*
|
|
10190
|
+
* @generated from enum toshi.workspace.v1.OperatorHold
|
|
10191
|
+
*/
|
|
10192
|
+
export type OperatorHoldJson = "OPERATOR_HOLD_UNSPECIFIED" | "OPERATOR_HOLD_ABUSE_SUSPECTED" | "OPERATOR_HOLD_ABUSE_CONFIRMED";
|
|
10193
|
+
/**
|
|
10194
|
+
* Describes the enum toshi.workspace.v1.OperatorHold.
|
|
10195
|
+
*/
|
|
10196
|
+
export declare const OperatorHoldSchema: GenEnum<OperatorHold, OperatorHoldJson>;
|
|
9849
10197
|
/**
|
|
9850
10198
|
* JobState is where a job is in its life. A job can skip a state: one
|
|
9851
10199
|
* cancelled while queued ends without running.
|