@ludeo/cloud-common 1.2.268 → 1.2.270
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/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/events/index.d.ts +1 -1
- package/dist/v4/events/index.js +2 -2
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/test-machines/index.d.ts +1 -0
- package/dist/v4/events/test-machines/index.js +18 -0
- package/dist/v4/events/test-machines/index.js.map +1 -0
- package/dist/v4/events/{set-sftp-credentials.d.ts → test-machines/set-sftp-credentials.d.ts} +3 -2
- package/dist/v4/events/{set-sftp-credentials.js → test-machines/set-sftp-credentials.js} +7 -3
- package/dist/v4/events/test-machines/set-sftp-credentials.js.map +1 -0
- package/dist/v4/types/cloud/cloud-configuration-settings.d.ts +1 -1
- package/dist/v4/types/cloud/cloud-configuration-settings.js +3 -14
- package/dist/v4/types/cloud/cloud-configuration-settings.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/index.ts +2 -2
- package/src/v4/events/test-machines/index.ts +1 -0
- package/src/v4/events/{set-sftp-credentials.ts → test-machines/set-sftp-credentials.ts} +7 -3
- package/src/v4/types/cloud/cloud-configuration-settings.ts +4 -16
- package/dist/v4/events/set-sftp-credentials.js.map +0 -1
|
@@ -40,7 +40,6 @@ export * from "./pool-status";
|
|
|
40
40
|
export * from "./send-pools-to-predictor";
|
|
41
41
|
export * from "./set-pool";
|
|
42
42
|
export * from "./set-pools-state";
|
|
43
|
-
export * from "./set-sftp-credentials";
|
|
44
43
|
export * from "./sftp-credentials-installed";
|
|
45
44
|
export * from "./swap-cloud-user-completed";
|
|
46
45
|
export * from "./swap-cloud-user-request-failed";
|
|
@@ -188,3 +187,4 @@ export * as SonicServer from "./sonic-server";
|
|
|
188
187
|
export * as CloudSessionAllocator from "./cloud-session-allocator";
|
|
189
188
|
export * as CloudResourceMonitor from "./cloud-resource-monitor";
|
|
190
189
|
export * as CloudSessions from "./cloud-sessions";
|
|
190
|
+
export * as TestMachines from "./test-machines";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.CloudSessions = exports.CloudResourceMonitor = exports.CloudSessionAllocator = exports.SonicServer = exports.LudeocastAgent = exports.Provisioner = exports.Forecast = exports.CloudBuilds = exports.CloudResources = exports.SiteController = void 0;
|
|
17
|
+
exports.TestMachines = exports.CloudSessions = exports.CloudResourceMonitor = exports.CloudSessionAllocator = exports.SonicServer = exports.LudeocastAgent = exports.Provisioner = exports.Forecast = exports.CloudBuilds = exports.CloudResources = exports.SiteController = void 0;
|
|
18
18
|
__exportStar(require("./activation"), exports);
|
|
19
19
|
__exportStar(require("./allocate-game-request"), exports);
|
|
20
20
|
__exportStar(require("./allocate-game-resource-request"), exports);
|
|
@@ -57,7 +57,6 @@ __exportStar(require("./pool-status"), exports);
|
|
|
57
57
|
__exportStar(require("./send-pools-to-predictor"), exports);
|
|
58
58
|
__exportStar(require("./set-pool"), exports);
|
|
59
59
|
__exportStar(require("./set-pools-state"), exports);
|
|
60
|
-
__exportStar(require("./set-sftp-credentials"), exports);
|
|
61
60
|
__exportStar(require("./sftp-credentials-installed"), exports);
|
|
62
61
|
__exportStar(require("./swap-cloud-user-completed"), exports);
|
|
63
62
|
__exportStar(require("./swap-cloud-user-request-failed"), exports);
|
|
@@ -205,4 +204,5 @@ exports.SonicServer = require("./sonic-server");
|
|
|
205
204
|
exports.CloudSessionAllocator = require("./cloud-session-allocator");
|
|
206
205
|
exports.CloudResourceMonitor = require("./cloud-resource-monitor");
|
|
207
206
|
exports.CloudSessions = require("./cloud-sessions");
|
|
207
|
+
exports.TestMachines = require("./test-machines");
|
|
208
208
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;A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;AAClD,kDAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./set-sftp-credentials";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./set-sftp-credentials"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/test-machines/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC"}
|
package/dist/v4/events/{set-sftp-credentials.d.ts → test-machines/set-sftp-credentials.d.ts}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { LudeoEvent } from "
|
|
2
|
-
import { CloudResourceContext } from "
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { CloudResourceContext } from "../../contexts";
|
|
3
3
|
export declare class SetSftpCredentialsPayload {
|
|
4
4
|
principalId: string;
|
|
5
5
|
publicKey: string;
|
|
6
|
+
site: string;
|
|
6
7
|
}
|
|
7
8
|
export declare class SetSftpCredentials extends LudeoEvent {
|
|
8
9
|
static readonly EVENT_NAME = "test-machines.set-sftp-credentials";
|
|
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SetSftpCredentials = exports.SetSftpCredentialsPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const validate_nested_type_decorator_1 = require("
|
|
15
|
-
const infra_1 = require("
|
|
16
|
-
const contexts_1 = require("
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../../decorators/validate-nested-type.decorator");
|
|
15
|
+
const infra_1 = require("../../../infra");
|
|
16
|
+
const contexts_1 = require("../../contexts");
|
|
17
17
|
class SetSftpCredentialsPayload {
|
|
18
18
|
}
|
|
19
19
|
exports.SetSftpCredentialsPayload = SetSftpCredentialsPayload;
|
|
@@ -25,6 +25,10 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsString)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], SetSftpCredentialsPayload.prototype, "publicKey", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SetSftpCredentialsPayload.prototype, "site", void 0);
|
|
28
32
|
class SetSftpCredentials extends infra_1.LudeoEvent {
|
|
29
33
|
constructor(payload, context) {
|
|
30
34
|
super(SetSftpCredentials.EVENT_NAME);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-sftp-credentials.js","sourceRoot":"","sources":["../../../../src/v4/events/test-machines/set-sftp-credentials.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,uGAAwF;AACxF,0CAA4C;AAC5C,6CAAsD;AAEtD,MAAa,yBAAyB;CAarC;AAbD,8DAaC;AATC;IADC,IAAA,0BAAQ,GAAE;;8DACS;AAIpB;IADC,IAAA,0BAAQ,GAAE;;4DACO;AAIlB;IADC,IAAA,0BAAQ,GAAE;;uDACE;AAGf,MAAa,kBAAmB,SAAQ,kBAAU;IAGhD,YACE,OAAkC,EAClC,OAA6B;QAE7B,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gDAiBC;AAhBiB,6BAAU,GAAG,oCAAoC,CAAC;AAYlE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC;8BAC3C,yBAAyB;mDAAC;AAGnC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;mDAAC"}
|
|
@@ -25,7 +25,7 @@ export interface CloudSettingsTypeMap {
|
|
|
25
25
|
[CloudSettingsKeys.SPOT_ROLLOUT]: number;
|
|
26
26
|
[CloudSettingsKeys.SCALING]: CloudScalingMode;
|
|
27
27
|
}
|
|
28
|
-
export declare const MACHINE_CLASS_PRIORITY_DEFAULT_VALUES:
|
|
28
|
+
export declare const MACHINE_CLASS_PRIORITY_DEFAULT_VALUES: string[];
|
|
29
29
|
export type CloudSettings = {
|
|
30
30
|
[K in CloudSettingsKeys]: CloudSettingsTypeMap[K];
|
|
31
31
|
};
|
|
@@ -20,20 +20,9 @@ var CloudSettingsKeys;
|
|
|
20
20
|
CloudSettingsKeys["SCALING"] = "scaling";
|
|
21
21
|
})(CloudSettingsKeys || (exports.CloudSettingsKeys = CloudSettingsKeys = {}));
|
|
22
22
|
exports.MACHINE_CLASS_PRIORITY_DEFAULT_VALUES = [
|
|
23
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.
|
|
24
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.
|
|
25
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.
|
|
26
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.G4DN_4XLARGE,
|
|
27
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.G5_2XLARGE,
|
|
28
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.G5_4XLARGE,
|
|
29
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.G2_STANDARD_16,
|
|
30
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.G6_2XLARGE,
|
|
31
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.G6_4XLARGE,
|
|
32
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.G6E_2XLARGE,
|
|
33
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.G6E_4XLARGE,
|
|
34
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.G4_STANDARD_48,
|
|
35
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.G7E_2XLARGE,
|
|
36
|
-
ludeocast_v2_1.LudeoCastV2MachineClass.G7E_4XLARGE,
|
|
23
|
+
`${ludeocast_v2_1.LudeoCastV2MachineClass.N1_STANDARD_16}${ludeocast_v2_1.SPOT_SUFFIX}`,
|
|
24
|
+
`${ludeocast_v2_1.LudeoCastV2MachineClass.G2_STANDARD_16}${ludeocast_v2_1.SPOT_SUFFIX}`,
|
|
25
|
+
`${ludeocast_v2_1.LudeoCastV2MachineClass.G4_STANDARD_48}${ludeocast_v2_1.SPOT_SUFFIX}`,
|
|
37
26
|
];
|
|
38
27
|
const getCloudSettingsByKey = (key, cloudSettings) => {
|
|
39
28
|
const raw = cloudSettings[key];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-configuration-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/cloud-configuration-settings.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"cloud-configuration-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/cloud-configuration-settings.ts"],"names":[],"mappings":";;;AAAA,iDAAsE;AAGtE,IAAY,gBAGX;AAHD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from "./pool-status";
|
|
|
40
40
|
export * from "./send-pools-to-predictor";
|
|
41
41
|
export * from "./set-pool";
|
|
42
42
|
export * from "./set-pools-state";
|
|
43
|
-
export * from "./set-sftp-credentials";
|
|
44
43
|
export * from "./sftp-credentials-installed";
|
|
45
44
|
export * from "./swap-cloud-user-completed";
|
|
46
45
|
export * from "./swap-cloud-user-request-failed";
|
|
@@ -188,4 +187,5 @@ export * as LudeocastAgent from "./ludeocast-agent";
|
|
|
188
187
|
export * as SonicServer from "./sonic-server";
|
|
189
188
|
export * as CloudSessionAllocator from "./cloud-session-allocator";
|
|
190
189
|
export * as CloudResourceMonitor from "./cloud-resource-monitor";
|
|
191
|
-
export * as CloudSessions from "./cloud-sessions";
|
|
190
|
+
export * as CloudSessions from "./cloud-sessions";
|
|
191
|
+
export * as TestMachines from "./test-machines";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./set-sftp-credentials";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IsString } from "class-validator";
|
|
2
|
-
import { ValidateNestedType } from "
|
|
3
|
-
import { LudeoEvent } from "
|
|
4
|
-
import { CloudResourceContext } from "
|
|
2
|
+
import { ValidateNestedType } from "../../../decorators/validate-nested-type.decorator";
|
|
3
|
+
import { LudeoEvent } from "../../../infra";
|
|
4
|
+
import { CloudResourceContext } from "../../contexts";
|
|
5
5
|
|
|
6
6
|
export class SetSftpCredentialsPayload {
|
|
7
7
|
// Stable userId of the dev who clicked Browse Files. Carried through so the
|
|
@@ -12,6 +12,10 @@ export class SetSftpCredentialsPayload {
|
|
|
12
12
|
// The dev's SSH public key (BYOK). Public by definition - safe to log/store.
|
|
13
13
|
@IsString()
|
|
14
14
|
publicKey: string;
|
|
15
|
+
|
|
16
|
+
// GCP site/region — used by site-controller to filter events per deployment.
|
|
17
|
+
@IsString()
|
|
18
|
+
site: string;
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
export class SetSftpCredentials extends LudeoEvent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LudeoCastV2MachineClass } from "./ludeocast-v2";
|
|
1
|
+
import { LudeoCastV2MachineClass, SPOT_SUFFIX } from "./ludeocast-v2";
|
|
2
2
|
|
|
3
3
|
/** Stored values match UI labels for persistence and APIs. */
|
|
4
4
|
export enum CloudScalingMode {
|
|
@@ -32,21 +32,9 @@ export interface CloudSettingsTypeMap {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export const MACHINE_CLASS_PRIORITY_DEFAULT_VALUES = [
|
|
35
|
-
LudeoCastV2MachineClass.
|
|
36
|
-
LudeoCastV2MachineClass.
|
|
37
|
-
LudeoCastV2MachineClass.
|
|
38
|
-
LudeoCastV2MachineClass.G4DN_4XLARGE,
|
|
39
|
-
LudeoCastV2MachineClass.G5_2XLARGE,
|
|
40
|
-
LudeoCastV2MachineClass.G5_4XLARGE,
|
|
41
|
-
LudeoCastV2MachineClass.G2_STANDARD_16,
|
|
42
|
-
LudeoCastV2MachineClass.G6_2XLARGE,
|
|
43
|
-
LudeoCastV2MachineClass.G6_4XLARGE,
|
|
44
|
-
LudeoCastV2MachineClass.G6E_2XLARGE,
|
|
45
|
-
LudeoCastV2MachineClass.G6E_4XLARGE,
|
|
46
|
-
LudeoCastV2MachineClass.G4_STANDARD_48,
|
|
47
|
-
LudeoCastV2MachineClass.G7E_2XLARGE,
|
|
48
|
-
LudeoCastV2MachineClass.G7E_4XLARGE,
|
|
49
|
-
|
|
35
|
+
`${LudeoCastV2MachineClass.N1_STANDARD_16}${SPOT_SUFFIX}`,
|
|
36
|
+
`${LudeoCastV2MachineClass.G2_STANDARD_16}${SPOT_SUFFIX}`,
|
|
37
|
+
`${LudeoCastV2MachineClass.G4_STANDARD_48}${SPOT_SUFFIX}`,
|
|
50
38
|
];
|
|
51
39
|
|
|
52
40
|
// Create a type-safe CloudSettings type
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-sftp-credentials.js","sourceRoot":"","sources":["../../../src/v4/events/set-sftp-credentials.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AAEnD,MAAa,yBAAyB;CASrC;AATD,8DASC;AALC;IADC,IAAA,0BAAQ,GAAE;;8DACS;AAIpB;IADC,IAAA,0BAAQ,GAAE;;4DACO;AAGpB,MAAa,kBAAmB,SAAQ,kBAAU;IAGhD,YACE,OAAkC,EAClC,OAA6B;QAE7B,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gDAiBC;AAhBiB,6BAAU,GAAG,oCAAoC,CAAC;AAYlE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC;8BAC3C,yBAAyB;mDAAC;AAGnC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;mDAAC"}
|