@toshicloud/sdk 0.5.1 → 0.7.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 +39 -455
- package/dist/client.d.ts +76 -6
- package/dist/client.js +20 -4
- package/dist/gen/toshi/permission_pb.d.ts +12 -0
- package/dist/gen/toshi/permission_pb.js +14 -2
- package/dist/gen/toshi/workspace/v1/connections_pb.d.ts +358 -29
- package/dist/gen/toshi/workspace/v1/connections_pb.js +112 -24
- package/dist/gen/toshi/workspace/v1/domains_pb.d.ts +26 -26
- package/dist/gen/toshi/workspace/v1/domains_pb.js +4 -4
- package/dist/gen/toshi/workspace/v1/{channels_pb.d.ts → endpoints_pb.d.ts} +945 -822
- package/dist/gen/toshi/workspace/v1/endpoints_pb.js +488 -0
- package/dist/gen/toshi/workspace/v1/grants_pb.d.ts +10 -10
- package/dist/gen/toshi/workspace/v1/grants_pb.js +3 -3
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +62 -24
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/hosts_pb.d.ts +110 -36
- package/dist/gen/toshi/workspace/v1/hosts_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/model_credentials_pb.d.ts +654 -0
- package/dist/gen/toshi/workspace/v1/model_credentials_pb.js +110 -0
- package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +21 -2
- package/dist/gen/toshi/workspace/v1/recordings_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/roles_pb.d.ts +1 -1
- package/dist/gen/toshi/workspace/v1/roles_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +19 -2
- package/dist/gen/toshi/workspace/v1/secrets_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/triggers_pb.d.ts +28 -28
- package/dist/gen/toshi/workspace/v1/triggers_pb.js +6 -6
- package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +202 -202
- package/dist/gen/toshi/workspace/v1/webhook_pb.js +46 -46
- package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +579 -30
- package/dist/gen/toshi/workspace/v1/workloads_pb.js +85 -55
- package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +991 -123
- package/dist/gen/toshi/workspace/v1/workspace_pb.js +294 -102
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +390 -8
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +75 -50
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/retry.js +38 -22
- 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 +40 -34
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/gen/toshi/workspace/v1/channels_pb.js +0 -483
|
@@ -311,16 +311,11 @@ export type GetHostJobFailureResponse = Message<"toshi.workspace.v1.GetHostJobFa
|
|
|
311
311
|
*/
|
|
312
312
|
whatToDo: string;
|
|
313
313
|
/**
|
|
314
|
-
* The host job's page on GitHub
|
|
315
|
-
* empty when Toshi does not know it.
|
|
314
|
+
* The host job's page on GitHub. Empty when Toshi does not know it.
|
|
316
315
|
*
|
|
317
316
|
* @generated from field: string github_url = 7;
|
|
318
317
|
*/
|
|
319
318
|
githubUrl: string;
|
|
320
|
-
/**
|
|
321
|
-
* @generated from field: string dashboard_url = 8;
|
|
322
|
-
*/
|
|
323
|
-
dashboardUrl: string;
|
|
324
319
|
/**
|
|
325
320
|
* How earlier failures of the same job went when they were re-run on
|
|
326
321
|
* GitHub. Unset for a host job that succeeded, has not ended or was
|
|
@@ -401,16 +396,11 @@ export type GetHostJobFailureResponseJson = {
|
|
|
401
396
|
*/
|
|
402
397
|
whatToDo?: string;
|
|
403
398
|
/**
|
|
404
|
-
* The host job's page on GitHub
|
|
405
|
-
* empty when Toshi does not know it.
|
|
399
|
+
* The host job's page on GitHub. Empty when Toshi does not know it.
|
|
406
400
|
*
|
|
407
401
|
* @generated from field: string github_url = 7;
|
|
408
402
|
*/
|
|
409
403
|
githubUrl?: string;
|
|
410
|
-
/**
|
|
411
|
-
* @generated from field: string dashboard_url = 8;
|
|
412
|
-
*/
|
|
413
|
-
dashboardUrl?: string;
|
|
414
404
|
/**
|
|
415
405
|
* How earlier failures of the same job went when they were re-run on
|
|
416
406
|
* GitHub. Unset for a host job that succeeded, has not ended or was
|
|
@@ -788,7 +778,7 @@ export type HostJob = Message<"toshi.workspace.v1.HostJob"> & {
|
|
|
788
778
|
* github_completed, runner_not_started, runner_unconfirmed, debug_ended,
|
|
789
779
|
* ran_elsewhere, for a sandbox spend_cap, tenant_suspended,
|
|
790
780
|
* tenant_deleted or owner, or for a service's run owner_deleted,
|
|
791
|
-
* service_restart or sleep. Empty if it never was.
|
|
781
|
+
* service_restart or sleep, or policy. Empty if it never was.
|
|
792
782
|
*
|
|
793
783
|
* @generated from field: string stop_reason = 18;
|
|
794
784
|
*/
|
|
@@ -803,15 +793,22 @@ export type HostJob = Message<"toshi.workspace.v1.HostJob"> & {
|
|
|
803
793
|
/**
|
|
804
794
|
* Why the scheduler last held the job while it was queued:
|
|
805
795
|
* tenant_suspended, limits_unavailable, tenant_cap, tenant_vcpu,
|
|
806
|
-
* free_allowance, spend_cap, jobs_per_hour,
|
|
807
|
-
* installation_suspended, overflow_wait, no_own_capacity,
|
|
808
|
-
* cloud_budget, reserved_for_other, volume_claimed,
|
|
809
|
-
* no_network_enforcement, no_build_base or host_kinds.
|
|
810
|
-
* was never held. It is kept after the job starts.
|
|
796
|
+
* free_allowance, spend_cap, jobs_per_hour, start_rate, burst_guard,
|
|
797
|
+
* plan_os, installation_suspended, overflow_wait, no_own_capacity,
|
|
798
|
+
* no_capacity, cloud_budget, reserved_for_other, volume_claimed,
|
|
799
|
+
* service_quota, no_network_enforcement, no_build_base or host_kinds.
|
|
800
|
+
* Empty when the job was never held. It is kept after the job starts.
|
|
811
801
|
*
|
|
812
802
|
* @generated from field: string hold_reason = 20;
|
|
813
803
|
*/
|
|
814
804
|
holdReason: string;
|
|
805
|
+
/**
|
|
806
|
+
* When the job's hold_reason is start_rate: the earliest time every start
|
|
807
|
+
* window of the workspace has room again. Unset otherwise.
|
|
808
|
+
*
|
|
809
|
+
* @generated from field: google.protobuf.Timestamp next_start_at = 56;
|
|
810
|
+
*/
|
|
811
|
+
nextStartAt?: Timestamp | undefined;
|
|
815
812
|
/**
|
|
816
813
|
* Whether the job was placed on a host its workspace owns. Such a job sends no
|
|
817
814
|
* meter event.
|
|
@@ -913,6 +910,16 @@ export type HostJob = Message<"toshi.workspace.v1.HostJob"> & {
|
|
|
913
910
|
* @generated from field: int64 billable_minutes = 34;
|
|
914
911
|
*/
|
|
915
912
|
billableMinutes: bigint;
|
|
913
|
+
/**
|
|
914
|
+
* The job's exact run time in seconds, from started_at to
|
|
915
|
+
* stop_requested_at when the job was asked to stop, else to finished_at,
|
|
916
|
+
* with no rounding: what a plan that bills by the second counts.
|
|
917
|
+
* billable_minutes is the same time rounded up to whole minutes. 0 for
|
|
918
|
+
* the same jobs as billable_minutes.
|
|
919
|
+
*
|
|
920
|
+
* @generated from field: double billable_seconds = 55;
|
|
921
|
+
*/
|
|
922
|
+
billableSeconds: number;
|
|
916
923
|
/**
|
|
917
924
|
* The job's page on GitHub, on the configured GitHub web URL. Empty when
|
|
918
925
|
* the job has no repository, run or workflow job id.
|
|
@@ -1083,6 +1090,13 @@ export type HostJob = Message<"toshi.workspace.v1.HostJob"> & {
|
|
|
1083
1090
|
* @generated from field: string screen_unavailable_reason = 53;
|
|
1084
1091
|
*/
|
|
1085
1092
|
screenUnavailableReason: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* exec_rate, connection_rate, request_rate, mining, operator or runner_swap; set only
|
|
1095
|
+
* with stop_reason "policy".
|
|
1096
|
+
*
|
|
1097
|
+
* @generated from field: string stop_cause = 54;
|
|
1098
|
+
*/
|
|
1099
|
+
stopCause: string;
|
|
1086
1100
|
};
|
|
1087
1101
|
/**
|
|
1088
1102
|
* HostJob is one run on a host: a GitHub Actions workflow job, or the run of
|
|
@@ -1181,7 +1195,7 @@ export type HostJobJson = {
|
|
|
1181
1195
|
* github_completed, runner_not_started, runner_unconfirmed, debug_ended,
|
|
1182
1196
|
* ran_elsewhere, for a sandbox spend_cap, tenant_suspended,
|
|
1183
1197
|
* tenant_deleted or owner, or for a service's run owner_deleted,
|
|
1184
|
-
* service_restart or sleep. Empty if it never was.
|
|
1198
|
+
* service_restart or sleep, or policy. Empty if it never was.
|
|
1185
1199
|
*
|
|
1186
1200
|
* @generated from field: string stop_reason = 18;
|
|
1187
1201
|
*/
|
|
@@ -1196,15 +1210,22 @@ export type HostJobJson = {
|
|
|
1196
1210
|
/**
|
|
1197
1211
|
* Why the scheduler last held the job while it was queued:
|
|
1198
1212
|
* tenant_suspended, limits_unavailable, tenant_cap, tenant_vcpu,
|
|
1199
|
-
* free_allowance, spend_cap, jobs_per_hour,
|
|
1200
|
-
* installation_suspended, overflow_wait, no_own_capacity,
|
|
1201
|
-
* cloud_budget, reserved_for_other, volume_claimed,
|
|
1202
|
-
* no_network_enforcement, no_build_base or host_kinds.
|
|
1203
|
-
* was never held. It is kept after the job starts.
|
|
1213
|
+
* free_allowance, spend_cap, jobs_per_hour, start_rate, burst_guard,
|
|
1214
|
+
* plan_os, installation_suspended, overflow_wait, no_own_capacity,
|
|
1215
|
+
* no_capacity, cloud_budget, reserved_for_other, volume_claimed,
|
|
1216
|
+
* service_quota, no_network_enforcement, no_build_base or host_kinds.
|
|
1217
|
+
* Empty when the job was never held. It is kept after the job starts.
|
|
1204
1218
|
*
|
|
1205
1219
|
* @generated from field: string hold_reason = 20;
|
|
1206
1220
|
*/
|
|
1207
1221
|
holdReason?: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* When the job's hold_reason is start_rate: the earliest time every start
|
|
1224
|
+
* window of the workspace has room again. Unset otherwise.
|
|
1225
|
+
*
|
|
1226
|
+
* @generated from field: google.protobuf.Timestamp next_start_at = 56;
|
|
1227
|
+
*/
|
|
1228
|
+
nextStartAt?: TimestampJson;
|
|
1208
1229
|
/**
|
|
1209
1230
|
* Whether the job was placed on a host its workspace owns. Such a job sends no
|
|
1210
1231
|
* meter event.
|
|
@@ -1306,6 +1327,16 @@ export type HostJobJson = {
|
|
|
1306
1327
|
* @generated from field: int64 billable_minutes = 34;
|
|
1307
1328
|
*/
|
|
1308
1329
|
billableMinutes?: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* The job's exact run time in seconds, from started_at to
|
|
1332
|
+
* stop_requested_at when the job was asked to stop, else to finished_at,
|
|
1333
|
+
* with no rounding: what a plan that bills by the second counts.
|
|
1334
|
+
* billable_minutes is the same time rounded up to whole minutes. 0 for
|
|
1335
|
+
* the same jobs as billable_minutes.
|
|
1336
|
+
*
|
|
1337
|
+
* @generated from field: double billable_seconds = 55;
|
|
1338
|
+
*/
|
|
1339
|
+
billableSeconds?: number | "NaN" | "Infinity" | "-Infinity";
|
|
1309
1340
|
/**
|
|
1310
1341
|
* The job's page on GitHub, on the configured GitHub web URL. Empty when
|
|
1311
1342
|
* the job has no repository, run or workflow job id.
|
|
@@ -1476,6 +1507,13 @@ export type HostJobJson = {
|
|
|
1476
1507
|
* @generated from field: string screen_unavailable_reason = 53;
|
|
1477
1508
|
*/
|
|
1478
1509
|
screenUnavailableReason?: string;
|
|
1510
|
+
/**
|
|
1511
|
+
* exec_rate, connection_rate, request_rate, mining, operator or runner_swap; set only
|
|
1512
|
+
* with stop_reason "policy".
|
|
1513
|
+
*
|
|
1514
|
+
* @generated from field: string stop_cause = 54;
|
|
1515
|
+
*/
|
|
1516
|
+
stopCause?: string;
|
|
1479
1517
|
};
|
|
1480
1518
|
/**
|
|
1481
1519
|
* Describes the message toshi.workspace.v1.HostJob.
|
|
@@ -7,7 +7,7 @@ import { file_toshi_permission } from "../../permission_pb.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file toshi/workspace/v1/hostjobs.proto.
|
|
9
9
|
*/
|
|
10
|
-
export const file_toshi_workspace_v1_hostjobs = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_toshi_workspace_v1_hostjobs = /*@__PURE__*/ fileDesc("CiF0b3NoaS93b3Jrc3BhY2UvdjEvaG9zdGpvYnMucHJvdG8SEnRvc2hpLndvcmtzcGFjZS52MSKXAQoTTGlzdEhvc3RKb2JzUmVxdWVzdBIwCgZzdGF0ZXMYASADKA4yIC50b3NoaS53b3Jrc3BhY2UudjEuSG9zdEpvYlN0YXRlEhIKCnJlcG9zaXRvcnkYAiABKAkSEwoLd29ya2xvYWRfaWQYAyABKAkSEQoJcGFnZV9zaXplGAQgASgFEhIKCnBhZ2VfdG9rZW4YBSABKAkiXwoUTGlzdEhvc3RKb2JzUmVzcG9uc2USLgoJaG9zdF9qb2JzGAEgAygLMhsudG9zaGkud29ya3NwYWNlLnYxLkhvc3RKb2ISFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJIh8KEUdldEhvc3RKb2JSZXF1ZXN0EgoKAmlkGAEgASgJInkKEkdldEhvc3RKb2JSZXNwb25zZRItCghob3N0X2pvYhgBIAEoCzIbLnRvc2hpLndvcmtzcGFjZS52MS5Ib3N0Sm9iEjQKCGF0dGVtcHRzGAIgAygLMiIudG9zaGkud29ya3NwYWNlLnYxLkhvc3RKb2JBdHRlbXB0IiIKFENhbmNlbEhvc3RKb2JSZXF1ZXN0EgoKAmlkGAEgASgJIkYKFUNhbmNlbEhvc3RKb2JSZXNwb25zZRItCghob3N0X2pvYhgBIAEoCzIbLnRvc2hpLndvcmtzcGFjZS52MS5Ib3N0Sm9iIiYKGEdldEhvc3RKb2JGYWlsdXJlUmVxdWVzdBIKCgJpZBgBIAEoCSKnAgoZR2V0SG9zdEpvYkZhaWx1cmVSZXNwb25zZRINCgVjYXVzZRgBIAEoCRITCgtleHBsYW5hdGlvbhg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Y2Vzc1Jlc3BvbnNlIjPC8xgNZGVidWcuY29ubmVjdNLzGB4KHGhvc3Rfam9iLmRlYnVnX2FjY2Vzc19pc3N1ZWQSmgEKEFN0b3BIb3N0Sm9iRGVidWcSKy50b3NoaS53b3Jrc3BhY2UudjEuU3RvcEhvc3RKb2JEZWJ1Z1JlcXVlc3QaLC50b3NoaS53b3Jrc3BhY2UudjEuU3RvcEhvc3RKb2JEZWJ1Z1Jlc3BvbnNlIivC8xgLZGVidWcud3JpdGXS8xgYChZob3N0X2pvYi5kZWJ1Z19zdG9wcGVkQiJaIGdvLnRvc2hpY2xvdWQuaW8vYXBpL3dvcmtzcGFjZXYxYgZwcm90bzM", [file_google_protobuf_timestamp, file_toshi_permission]);
|
|
11
11
|
/**
|
|
12
12
|
* Describes the message toshi.workspace.v1.ListHostJobsRequest.
|
|
13
13
|
* Use `create(ListHostJobsRequestSchema)` to create a new message.
|
|
@@ -409,13 +409,14 @@ export type CreateCloudHostRequest = Message<"toshi.workspace.v1.CreateCloudHost
|
|
|
409
409
|
*/
|
|
410
410
|
name: string;
|
|
411
411
|
/**
|
|
412
|
-
* The cloud provider: "aws" (the default) or "
|
|
412
|
+
* The cloud provider: "aws" (the default), "gcp" or "azure".
|
|
413
413
|
*
|
|
414
414
|
* @generated from field: string cloud = 2;
|
|
415
415
|
*/
|
|
416
416
|
cloud: string;
|
|
417
417
|
/**
|
|
418
|
-
* The AWS region the
|
|
418
|
+
* The AWS region (AWS), the zone's region (GCP) or the location (Azure)
|
|
419
|
+
* the instances run in.
|
|
419
420
|
*
|
|
420
421
|
* @generated from field: string region = 3;
|
|
421
422
|
*/
|
|
@@ -427,16 +428,18 @@ export type CreateCloudHostRequest = Message<"toshi.workspace.v1.CreateCloudHost
|
|
|
427
428
|
*/
|
|
428
429
|
roleArn: string;
|
|
429
430
|
/**
|
|
430
|
-
* The image the instances boot: an AMI (AWS),
|
|
431
|
-
* (an image name, family/NAME, or a projects/... path)
|
|
431
|
+
* The image the instances boot: an AMI (AWS), a GCE image or family
|
|
432
|
+
* (an image name, family/NAME, or a projects/... path), or a Compute
|
|
433
|
+
* Gallery image version ID (Azure).
|
|
432
434
|
*
|
|
433
435
|
* @generated from field: string image = 5;
|
|
434
436
|
*/
|
|
435
437
|
image: string;
|
|
436
438
|
/**
|
|
437
|
-
* The subnet (AWS)
|
|
438
|
-
* regions/R/subnetworks/S)
|
|
439
|
-
* or the default network
|
|
439
|
+
* The subnet (AWS), subnetwork (GCP, a name in the zone's region or
|
|
440
|
+
* regions/R/subnetworks/S) or subnet resource ID (Azure) to launch into;
|
|
441
|
+
* empty means a default subnet or the default network (required on
|
|
442
|
+
* Azure).
|
|
440
443
|
*
|
|
441
444
|
* @generated from field: string subnet_id = 6;
|
|
442
445
|
*/
|
|
@@ -527,6 +530,18 @@ export type CreateCloudHostRequest = Message<"toshi.workspace.v1.CreateCloudHost
|
|
|
527
530
|
* @generated from field: string request_key = 19;
|
|
528
531
|
*/
|
|
529
532
|
requestKey: string;
|
|
533
|
+
/**
|
|
534
|
+
* The Azure subscription the instances run in (Azure).
|
|
535
|
+
*
|
|
536
|
+
* @generated from field: string subscription_id = 20;
|
|
537
|
+
*/
|
|
538
|
+
subscriptionId: string;
|
|
539
|
+
/**
|
|
540
|
+
* The Azure resource group the instances run in (Azure).
|
|
541
|
+
*
|
|
542
|
+
* @generated from field: string resource_group = 21;
|
|
543
|
+
*/
|
|
544
|
+
resourceGroup: string;
|
|
530
545
|
};
|
|
531
546
|
/**
|
|
532
547
|
* CreateCloudHostRequest names the cloud host to register.
|
|
@@ -541,13 +556,14 @@ export type CreateCloudHostRequestJson = {
|
|
|
541
556
|
*/
|
|
542
557
|
name?: string;
|
|
543
558
|
/**
|
|
544
|
-
* The cloud provider: "aws" (the default) or "
|
|
559
|
+
* The cloud provider: "aws" (the default), "gcp" or "azure".
|
|
545
560
|
*
|
|
546
561
|
* @generated from field: string cloud = 2;
|
|
547
562
|
*/
|
|
548
563
|
cloud?: string;
|
|
549
564
|
/**
|
|
550
|
-
* The AWS region the
|
|
565
|
+
* The AWS region (AWS), the zone's region (GCP) or the location (Azure)
|
|
566
|
+
* the instances run in.
|
|
551
567
|
*
|
|
552
568
|
* @generated from field: string region = 3;
|
|
553
569
|
*/
|
|
@@ -559,16 +575,18 @@ export type CreateCloudHostRequestJson = {
|
|
|
559
575
|
*/
|
|
560
576
|
roleArn?: string;
|
|
561
577
|
/**
|
|
562
|
-
* The image the instances boot: an AMI (AWS),
|
|
563
|
-
* (an image name, family/NAME, or a projects/... path)
|
|
578
|
+
* The image the instances boot: an AMI (AWS), a GCE image or family
|
|
579
|
+
* (an image name, family/NAME, or a projects/... path), or a Compute
|
|
580
|
+
* Gallery image version ID (Azure).
|
|
564
581
|
*
|
|
565
582
|
* @generated from field: string image = 5;
|
|
566
583
|
*/
|
|
567
584
|
image?: string;
|
|
568
585
|
/**
|
|
569
|
-
* The subnet (AWS)
|
|
570
|
-
* regions/R/subnetworks/S)
|
|
571
|
-
* or the default network
|
|
586
|
+
* The subnet (AWS), subnetwork (GCP, a name in the zone's region or
|
|
587
|
+
* regions/R/subnetworks/S) or subnet resource ID (Azure) to launch into;
|
|
588
|
+
* empty means a default subnet or the default network (required on
|
|
589
|
+
* Azure).
|
|
572
590
|
*
|
|
573
591
|
* @generated from field: string subnet_id = 6;
|
|
574
592
|
*/
|
|
@@ -659,6 +677,18 @@ export type CreateCloudHostRequestJson = {
|
|
|
659
677
|
* @generated from field: string request_key = 19;
|
|
660
678
|
*/
|
|
661
679
|
requestKey?: string;
|
|
680
|
+
/**
|
|
681
|
+
* The Azure subscription the instances run in (Azure).
|
|
682
|
+
*
|
|
683
|
+
* @generated from field: string subscription_id = 20;
|
|
684
|
+
*/
|
|
685
|
+
subscriptionId?: string;
|
|
686
|
+
/**
|
|
687
|
+
* The Azure resource group the instances run in (Azure).
|
|
688
|
+
*
|
|
689
|
+
* @generated from field: string resource_group = 21;
|
|
690
|
+
*/
|
|
691
|
+
resourceGroup?: string;
|
|
662
692
|
};
|
|
663
693
|
/**
|
|
664
694
|
* Describes the message toshi.workspace.v1.CreateCloudHostRequest.
|
|
@@ -701,6 +731,13 @@ export type CreateCloudHostResponse = Message<"toshi.workspace.v1.CreateCloudHos
|
|
|
701
731
|
* @generated from field: string gcp_principal = 5;
|
|
702
732
|
*/
|
|
703
733
|
gcpPrincipal: string;
|
|
734
|
+
/**
|
|
735
|
+
* The application (client) id the workspace consents into its tenant and
|
|
736
|
+
* grants the host's role to (Azure).
|
|
737
|
+
*
|
|
738
|
+
* @generated from field: string azure_application_id = 6;
|
|
739
|
+
*/
|
|
740
|
+
azureApplicationId: string;
|
|
704
741
|
};
|
|
705
742
|
/**
|
|
706
743
|
* CreateCloudHostResponse carries the host, the trust external id and the
|
|
@@ -736,6 +773,13 @@ export type CreateCloudHostResponseJson = {
|
|
|
736
773
|
* @generated from field: string gcp_principal = 5;
|
|
737
774
|
*/
|
|
738
775
|
gcpPrincipal?: string;
|
|
776
|
+
/**
|
|
777
|
+
* The application (client) id the workspace consents into its tenant and
|
|
778
|
+
* grants the host's role to (Azure).
|
|
779
|
+
*
|
|
780
|
+
* @generated from field: string azure_application_id = 6;
|
|
781
|
+
*/
|
|
782
|
+
azureApplicationId?: string;
|
|
739
783
|
};
|
|
740
784
|
/**
|
|
741
785
|
* Describes the message toshi.workspace.v1.CreateCloudHostResponse.
|
|
@@ -936,8 +980,8 @@ export type Host = Message<"toshi.workspace.v1.Host"> & {
|
|
|
936
980
|
*/
|
|
937
981
|
stopping: boolean;
|
|
938
982
|
/**
|
|
939
|
-
* The cloud the host runs in when it is a cloud host ("aws"
|
|
940
|
-
* otherwise.
|
|
983
|
+
* The cloud the host runs in when it is a cloud host ("aws", "gcp" or
|
|
984
|
+
* "azure"); empty otherwise.
|
|
941
985
|
*
|
|
942
986
|
* @generated from field: string cloud = 12;
|
|
943
987
|
*/
|
|
@@ -1143,8 +1187,8 @@ export type HostJson = {
|
|
|
1143
1187
|
*/
|
|
1144
1188
|
stopping?: boolean;
|
|
1145
1189
|
/**
|
|
1146
|
-
* The cloud the host runs in when it is a cloud host ("aws"
|
|
1147
|
-
* otherwise.
|
|
1190
|
+
* The cloud the host runs in when it is a cloud host ("aws", "gcp" or
|
|
1191
|
+
* "azure"); empty otherwise.
|
|
1148
1192
|
*
|
|
1149
1193
|
* @generated from field: string cloud = 12;
|
|
1150
1194
|
*/
|
|
@@ -1721,8 +1765,8 @@ export declare const HostAlertSchema: GenMessage<HostAlert, {
|
|
|
1721
1765
|
jsonType: HostAlertJson;
|
|
1722
1766
|
}>;
|
|
1723
1767
|
/**
|
|
1724
|
-
* CloudHost is the AWS account
|
|
1725
|
-
* drives.
|
|
1768
|
+
* CloudHost is the AWS account, GCP project or Azure subscription behind a
|
|
1769
|
+
* workspace-owned host the control plane drives.
|
|
1726
1770
|
*
|
|
1727
1771
|
* @generated from message toshi.workspace.v1.CloudHost
|
|
1728
1772
|
*/
|
|
@@ -1734,13 +1778,14 @@ export type CloudHost = Message<"toshi.workspace.v1.CloudHost"> & {
|
|
|
1734
1778
|
*/
|
|
1735
1779
|
hostId: string;
|
|
1736
1780
|
/**
|
|
1737
|
-
* The cloud provider: "aws" or "
|
|
1781
|
+
* The cloud provider: "aws", "gcp" or "azure".
|
|
1738
1782
|
*
|
|
1739
1783
|
* @generated from field: string cloud = 2;
|
|
1740
1784
|
*/
|
|
1741
1785
|
cloud: string;
|
|
1742
1786
|
/**
|
|
1743
|
-
* The region the instances run in; on GCP the zone's region
|
|
1787
|
+
* The region the instances run in; on GCP the zone's region, on Azure
|
|
1788
|
+
* the location.
|
|
1744
1789
|
*
|
|
1745
1790
|
* @generated from field: string region = 3;
|
|
1746
1791
|
*/
|
|
@@ -1752,21 +1797,23 @@ export type CloudHost = Message<"toshi.workspace.v1.CloudHost"> & {
|
|
|
1752
1797
|
*/
|
|
1753
1798
|
roleArn: string;
|
|
1754
1799
|
/**
|
|
1755
|
-
* The external ID the role's trust policy requires (AWS),
|
|
1756
|
-
* metadata must name (GCP)
|
|
1800
|
+
* The external ID the role's trust policy requires (AWS), the project
|
|
1801
|
+
* metadata must name (GCP), or the resource group's toshi-external-id tag
|
|
1802
|
+
* must name (Azure); generated by Toshi.
|
|
1757
1803
|
*
|
|
1758
1804
|
* @generated from field: string external_id = 5;
|
|
1759
1805
|
*/
|
|
1760
1806
|
externalId: string;
|
|
1761
1807
|
/**
|
|
1762
|
-
* The image the instances boot: an AMI,
|
|
1808
|
+
* The image the instances boot: an AMI (AWS), a GCE image path (GCP) or
|
|
1809
|
+
* a Compute Gallery image version ID (Azure).
|
|
1763
1810
|
*
|
|
1764
1811
|
* @generated from field: string image = 6;
|
|
1765
1812
|
*/
|
|
1766
1813
|
image: string;
|
|
1767
1814
|
/**
|
|
1768
|
-
* The subnet (AWS)
|
|
1769
|
-
* default subnet or the default network.
|
|
1815
|
+
* The subnet (AWS), subnetwork (GCP) or subnet resource ID (Azure) to
|
|
1816
|
+
* launch into; empty means a default subnet or the default network.
|
|
1770
1817
|
*
|
|
1771
1818
|
* @generated from field: string subnet_id = 7;
|
|
1772
1819
|
*/
|
|
@@ -1836,10 +1883,22 @@ export type CloudHost = Message<"toshi.workspace.v1.CloudHost"> & {
|
|
|
1836
1883
|
* @generated from field: string egress = 18;
|
|
1837
1884
|
*/
|
|
1838
1885
|
egress: string;
|
|
1886
|
+
/**
|
|
1887
|
+
* The Azure subscription the instances run in (Azure).
|
|
1888
|
+
*
|
|
1889
|
+
* @generated from field: string subscription_id = 19;
|
|
1890
|
+
*/
|
|
1891
|
+
subscriptionId: string;
|
|
1892
|
+
/**
|
|
1893
|
+
* The Azure resource group the instances run in (Azure).
|
|
1894
|
+
*
|
|
1895
|
+
* @generated from field: string resource_group = 20;
|
|
1896
|
+
*/
|
|
1897
|
+
resourceGroup: string;
|
|
1839
1898
|
};
|
|
1840
1899
|
/**
|
|
1841
|
-
* CloudHost is the AWS account
|
|
1842
|
-
* drives.
|
|
1900
|
+
* CloudHost is the AWS account, GCP project or Azure subscription behind a
|
|
1901
|
+
* workspace-owned host the control plane drives.
|
|
1843
1902
|
*
|
|
1844
1903
|
* @generated from message toshi.workspace.v1.CloudHost
|
|
1845
1904
|
*/
|
|
@@ -1851,13 +1910,14 @@ export type CloudHostJson = {
|
|
|
1851
1910
|
*/
|
|
1852
1911
|
hostId?: string;
|
|
1853
1912
|
/**
|
|
1854
|
-
* The cloud provider: "aws" or "
|
|
1913
|
+
* The cloud provider: "aws", "gcp" or "azure".
|
|
1855
1914
|
*
|
|
1856
1915
|
* @generated from field: string cloud = 2;
|
|
1857
1916
|
*/
|
|
1858
1917
|
cloud?: string;
|
|
1859
1918
|
/**
|
|
1860
|
-
* The region the instances run in; on GCP the zone's region
|
|
1919
|
+
* The region the instances run in; on GCP the zone's region, on Azure
|
|
1920
|
+
* the location.
|
|
1861
1921
|
*
|
|
1862
1922
|
* @generated from field: string region = 3;
|
|
1863
1923
|
*/
|
|
@@ -1869,21 +1929,23 @@ export type CloudHostJson = {
|
|
|
1869
1929
|
*/
|
|
1870
1930
|
roleArn?: string;
|
|
1871
1931
|
/**
|
|
1872
|
-
* The external ID the role's trust policy requires (AWS),
|
|
1873
|
-
* metadata must name (GCP)
|
|
1932
|
+
* The external ID the role's trust policy requires (AWS), the project
|
|
1933
|
+
* metadata must name (GCP), or the resource group's toshi-external-id tag
|
|
1934
|
+
* must name (Azure); generated by Toshi.
|
|
1874
1935
|
*
|
|
1875
1936
|
* @generated from field: string external_id = 5;
|
|
1876
1937
|
*/
|
|
1877
1938
|
externalId?: string;
|
|
1878
1939
|
/**
|
|
1879
|
-
* The image the instances boot: an AMI,
|
|
1940
|
+
* The image the instances boot: an AMI (AWS), a GCE image path (GCP) or
|
|
1941
|
+
* a Compute Gallery image version ID (Azure).
|
|
1880
1942
|
*
|
|
1881
1943
|
* @generated from field: string image = 6;
|
|
1882
1944
|
*/
|
|
1883
1945
|
image?: string;
|
|
1884
1946
|
/**
|
|
1885
|
-
* The subnet (AWS)
|
|
1886
|
-
* default subnet or the default network.
|
|
1947
|
+
* The subnet (AWS), subnetwork (GCP) or subnet resource ID (Azure) to
|
|
1948
|
+
* launch into; empty means a default subnet or the default network.
|
|
1887
1949
|
*
|
|
1888
1950
|
* @generated from field: string subnet_id = 7;
|
|
1889
1951
|
*/
|
|
@@ -1953,6 +2015,18 @@ export type CloudHostJson = {
|
|
|
1953
2015
|
* @generated from field: string egress = 18;
|
|
1954
2016
|
*/
|
|
1955
2017
|
egress?: string;
|
|
2018
|
+
/**
|
|
2019
|
+
* The Azure subscription the instances run in (Azure).
|
|
2020
|
+
*
|
|
2021
|
+
* @generated from field: string subscription_id = 19;
|
|
2022
|
+
*/
|
|
2023
|
+
subscriptionId?: string;
|
|
2024
|
+
/**
|
|
2025
|
+
* The Azure resource group the instances run in (Azure).
|
|
2026
|
+
*
|
|
2027
|
+
* @generated from field: string resource_group = 20;
|
|
2028
|
+
*/
|
|
2029
|
+
resourceGroup?: string;
|
|
1956
2030
|
};
|
|
1957
2031
|
/**
|
|
1958
2032
|
* Describes the message toshi.workspace.v1.CloudHost.
|
|
@@ -8,7 +8,7 @@ import { file_toshi_workspace_v1_tokens } from "./tokens_pb.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* Describes the file toshi/workspace/v1/hosts.proto.
|
|
10
10
|
*/
|
|
11
|
-
export const file_toshi_workspace_v1_hosts = /*@__PURE__*/ fileDesc("
|
|
11
|
+
export const file_toshi_workspace_v1_hosts = /*@__PURE__*/ fileDesc("Ch50b3NoaS93b3Jrc3BhY2UvdjEvaG9zdHMucHJvdG8SEnRvc2hpLndvcmtzcGFjZS52MSKBAQoQTGlzdEhvc3RzUmVxdWVzdBItCgZzdGF0ZXMYASADKA4yHS50b3NoaS53b3Jrc3BhY2UudjEuSG9zdFN0YXRlEhcKD2V4Y2x1ZGVfcmV2b2tlZBgCIAEoCBIRCglwYWdlX3NpemUYAyABKAUSEgoKcGFnZV90b2tlbhgEIAEoCSKMAQoRTGlzdEhvc3RzUmVzcG9uc2USJwoFa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XS8xgpChBjbG91ZF9ob3N0LmFkZGVkEhVob3N0OnJlc3BvbnNlLmhvc3QuaWQSigEKDkNoZWNrQ2xvdWRIb3N0EikudG9zaGkud29ya3NwYWNlLnYxLkNoZWNrQ2xvdWRIb3N0UmVxdWVzdBoqLnRvc2hpLndvcmtzcGFjZS52MS5DaGVja0Nsb3VkSG9zdFJlc3BvbnNlIiHC8xgLaG9zdHMud3JpdGXS8xgOEgxob3N0Omhvc3RfaWQSoAEKFUNyZWF0ZUVucm9sbG1lbnRUb2tlbhIwLnRvc2hpLndvcmtzcGFjZS52MS5DcmVhdGVFbnJvbGxtZW50VG9rZW5SZXF1ZXN0GjEudG9zaGkud29ya3NwYWNlLnYxLkNyZWF0ZUVucm9sbG1lbnRUb2tlblJlc3BvbnNlIiLC8xgLaG9zdHMud3JpdGXS8xgPCg10b2tlbi5jcmVhdGVkQiJaIGdvLnRvc2hpY2xvdWQuaW8vYXBpL3dvcmtzcGFjZXYxYgZwcm90bzM", [file_google_protobuf_duration, file_google_protobuf_timestamp, file_toshi_permission, file_toshi_workspace_v1_tokens]);
|
|
12
12
|
/**
|
|
13
13
|
* Describes the message toshi.workspace.v1.ListHostsRequest.
|
|
14
14
|
* Use `create(ListHostsRequestSchema)` to create a new message.
|