@microagi/alchemy-gcp 0.2.0 → 0.3.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/README.md +54 -2
  3. package/lib/Container/Cluster.d.ts +25 -0
  4. package/lib/Container/Cluster.d.ts.map +1 -1
  5. package/lib/Container/Cluster.js.map +1 -1
  6. package/lib/Providers.d.ts.map +1 -1
  7. package/lib/Providers.js +5 -1
  8. package/lib/Providers.js.map +1 -1
  9. package/lib/Run/IamMember.d.ts +70 -0
  10. package/lib/Run/IamMember.d.ts.map +1 -0
  11. package/lib/Run/IamMember.js +65 -0
  12. package/lib/Run/IamMember.js.map +1 -0
  13. package/lib/Run/IamSync.d.ts +80 -0
  14. package/lib/Run/IamSync.d.ts.map +1 -0
  15. package/lib/Run/IamSync.js +73 -0
  16. package/lib/Run/IamSync.js.map +1 -0
  17. package/lib/Run/Job.d.ts +167 -0
  18. package/lib/Run/Job.d.ts.map +1 -0
  19. package/lib/Run/Job.js +199 -0
  20. package/lib/Run/Job.js.map +1 -0
  21. package/lib/Run/Operations.d.ts +47 -0
  22. package/lib/Run/Operations.d.ts.map +1 -0
  23. package/lib/Run/Operations.js +46 -0
  24. package/lib/Run/Operations.js.map +1 -0
  25. package/lib/Run/Service.d.ts +193 -0
  26. package/lib/Run/Service.d.ts.map +1 -0
  27. package/lib/Run/Service.js +247 -0
  28. package/lib/Run/Service.js.map +1 -0
  29. package/lib/Run/Validation.d.ts +54 -0
  30. package/lib/Run/Validation.d.ts.map +1 -0
  31. package/lib/Run/Validation.js +129 -0
  32. package/lib/Run/Validation.js.map +1 -0
  33. package/lib/Run/index.d.ts +51 -0
  34. package/lib/Run/index.d.ts.map +1 -0
  35. package/lib/Run/index.js +4 -0
  36. package/lib/Run/index.js.map +1 -0
  37. package/lib/index.d.ts +1 -0
  38. package/lib/index.d.ts.map +1 -1
  39. package/lib/index.js +1 -0
  40. package/lib/index.js.map +1 -1
  41. package/package.json +5 -4
  42. package/src/Container/Cluster.ts +25 -0
  43. package/src/Providers.ts +6 -0
  44. package/src/Run/IamMember.ts +79 -0
  45. package/src/Run/IamSync.ts +134 -0
  46. package/src/Run/Job.ts +453 -0
  47. package/src/Run/Operations.ts +77 -0
  48. package/src/Run/Service.ts +541 -0
  49. package/src/Run/Validation.ts +153 -0
  50. package/src/Run/index.ts +52 -0
  51. package/src/index.ts +1 -0
@@ -0,0 +1,52 @@
1
+ import type * as run from "@distilled.cloud/gcp/run-v2";
2
+
3
+ export { Job, JobProvider } from "./Job.ts";
4
+ export type { JobAttributes, JobProps } from "./Job.ts";
5
+ export { jobIamMember, serviceIamMember } from "./IamMember.ts";
6
+ export type { RunIamBinding, RunIamBindingContract } from "./IamSync.ts";
7
+ export { Service, ServiceProvider } from "./Service.ts";
8
+ export type { ServiceAttributes, ServiceProps } from "./Service.ts";
9
+
10
+ /**
11
+ * Clean aliases for the most commonly-used Cloud Run v2 SDK types,
12
+ * re-exported from `@distilled.cloud/gcp/run-v2` so consumers don't
13
+ * need to import from the underlying SDK directly. The aliases are
14
+ * type-only — they share identity with the distilled types, so values
15
+ * are interchangeable.
16
+ *
17
+ * The `GoogleCloudRunV2*` prefix on the SDK types is generated from
18
+ * the GCP Discovery Document and is awkward to consume; these aliases
19
+ * mirror the casing the GCP REST docs use ("RevisionTemplate",
20
+ * "Container", "TrafficTarget"), which is what most users will
21
+ * already have in their heads.
22
+ *
23
+ * @example
24
+ * ```typescript
25
+ * import * as GCP from "@microagi/alchemy-gcp";
26
+ *
27
+ * const template: GCP.RevisionTemplate = {
28
+ * containers: [{ image: "..." }],
29
+ * };
30
+ * ```
31
+ */
32
+ export type RevisionTemplate = run.GoogleCloudRunV2RevisionTemplate;
33
+ export type ExecutionTemplate = run.GoogleCloudRunV2ExecutionTemplate;
34
+ export type TaskTemplate = run.GoogleCloudRunV2TaskTemplate;
35
+ export type Container = run.GoogleCloudRunV2Container;
36
+ export type ContainerPort = run.GoogleCloudRunV2ContainerPort;
37
+ export type EnvVar = run.GoogleCloudRunV2EnvVar;
38
+ export type EnvVarSource = run.GoogleCloudRunV2EnvVarSource;
39
+ export type ResourceRequirements = run.GoogleCloudRunV2ResourceRequirements;
40
+ export type Probe = run.GoogleCloudRunV2Probe;
41
+ export type VpcAccess = run.GoogleCloudRunV2VpcAccess;
42
+ export type NetworkInterface = run.GoogleCloudRunV2NetworkInterface;
43
+ export type NodeSelector = run.GoogleCloudRunV2NodeSelector;
44
+ export type TrafficTarget = run.GoogleCloudRunV2TrafficTarget;
45
+ export type TrafficTargetStatus = run.GoogleCloudRunV2TrafficTargetStatus;
46
+ export type ServiceScaling = run.GoogleCloudRunV2ServiceScaling;
47
+ export type BinaryAuthorization = run.GoogleCloudRunV2BinaryAuthorization;
48
+ export type Volume = run.GoogleCloudRunV2Volume;
49
+ export type VolumeMount = run.GoogleCloudRunV2VolumeMount;
50
+ export type Condition = run.GoogleCloudRunV2Condition;
51
+ export type ExecutionReference = run.GoogleCloudRunV2ExecutionReference;
52
+ export type SecretKeySelector = run.GoogleCloudRunV2SecretKeySelector;
package/src/index.ts CHANGED
@@ -11,6 +11,7 @@ export * from "./CloudResourceManager/index.ts";
11
11
  export * from "./Compute/index.ts";
12
12
  export * from "./Container/index.ts";
13
13
  export * from "./ManagedLustre/index.ts";
14
+ export * from "./Run/index.ts";
14
15
  export * from "./ServiceNetworking/index.ts";
15
16
  export * from "./ServiceUsage/index.ts";
16
17
  export * from "./Providers.ts";