@sl-testing/ac-pulumi 0.1.30 → 0.1.31
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 +82 -0
- package/dist/agentConfiguration.d.ts +57 -0
- package/dist/agentConfiguration.js +93 -0
- package/dist/agentConfiguration.js.map +1 -0
- package/dist/agentRuns.d.ts +2 -0
- package/dist/agentRuns.js +2 -0
- package/dist/agentRuns.js.map +1 -1
- package/dist/database.d.ts +36 -0
- package/dist/database.js +64 -0
- package/dist/database.js.map +1 -0
- package/dist/image.d.ts +47 -0
- package/dist/image.js +77 -0
- package/dist/image.js.map +1 -0
- package/dist/imageVersions.d.ts +15 -0
- package/dist/imageVersions.js +24 -0
- package/dist/imageVersions.js.map +1 -0
- package/dist/imageVersionsByImage.d.ts +20 -0
- package/dist/imageVersionsByImage.js +28 -0
- package/dist/imageVersionsByImage.js.map +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +51 -1
- package/dist/index.js.map +1 -1
- package/dist/job.d.ts +49 -0
- package/dist/job.js +78 -0
- package/dist/job.js.map +1 -0
- package/dist/jobRuns.d.ts +20 -0
- package/dist/jobRuns.js +30 -0
- package/dist/jobRuns.js.map +1 -0
- package/dist/logs.d.ts +23 -0
- package/dist/logs.js +32 -0
- package/dist/logs.js.map +1 -0
- package/dist/package.json +2 -2
- package/dist/provider/darwin-arm64/pulumi-resource-agentcloud +0 -0
- package/dist/provider/linux-x64/pulumi-resource-agentcloud +0 -0
- package/dist/scripts/postinstall.js +76 -0
- package/dist/service.d.ts +47 -0
- package/dist/service.js +79 -0
- package/dist/service.js.map +1 -0
- package/dist/serviceDeploymentResource.d.ts +39 -0
- package/dist/serviceDeploymentResource.js +71 -0
- package/dist/serviceDeploymentResource.js.map +1 -0
- package/dist/serviceDeployments.d.ts +20 -0
- package/dist/serviceDeployments.js +28 -0
- package/dist/serviceDeployments.js.map +1 -0
- package/dist/slackActionTypes.d.ts +13 -0
- package/dist/slackActionTypes.js +24 -0
- package/dist/slackActionTypes.js.map +1 -0
- package/dist/slackConnection.d.ts +41 -0
- package/dist/slackConnection.js +75 -0
- package/dist/slackConnection.js.map +1 -0
- package/dist/trigger.d.ts +47 -0
- package/dist/trigger.js +78 -0
- package/dist/trigger.js.map +1 -0
- package/dist/types/output.d.ts +39 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Infra Pulumi Provider
|
|
2
|
+
|
|
3
|
+
# Spec
|
|
4
|
+
- Export surface: `@sl-testing/ac-pulumi`.
|
|
5
|
+
- Purpose: own the custom Pulumi provider source, provider schema, generated Node SDK distribution, plugin packaging, and install-time plugin bootstrap.
|
|
6
|
+
- Owns: `core/infra-pulumi-provider/provider`, `core/infra-pulumi-provider/postinstall.js`, generated SDK artifacts under `dist`, provider schema/codegen inputs, and release packaging logic for the published Pulumi package.
|
|
7
|
+
- Does not own: Terraform env roots, platform API behavior, or product resource semantics beyond faithfully exposing the platform contract.
|
|
8
|
+
- Dependencies: resource semantics come from `core/api/AGENTS.md` and the owning domain module `AGENTS.md` files.
|
|
9
|
+
- Cross-module contract: consumers import provider resources only from the package root `@sl-testing/ac-pulumi`.
|
|
10
|
+
- Provider package contract:
|
|
11
|
+
- this module ships the `agentcloud` Pulumi resource provider plus the generated Node SDK published as `@sl-testing/ac-pulumi`
|
|
12
|
+
- provider source-of-truth lives in `provider/*.go`; checked-in `dist` output is generated, not hand-edited
|
|
13
|
+
- release packaging runs through `core/repo-tools/src/build-ac-pulumi-package.sh`, injects `main.providerVersion`, runs `pulumi package gen-sdk`, patches the generated Node wrapper, and bundles provider binaries plus `postinstall.js`
|
|
14
|
+
- published installs auto-attempt `pulumi plugin install resource agentcloud <version> --reinstall` from the packaged binary, but do not hard-fail npm install if Pulumi or the plugin install step is unavailable
|
|
15
|
+
- bundled plugin binaries currently target `darwin-arm64` and `linux-x64`
|
|
16
|
+
- Provider scope and config:
|
|
17
|
+
- the provider manages project-owned resources inside one existing project at a time
|
|
18
|
+
- provider config keys are `agentcloud:apiUrl` and `agentcloud:projectId`
|
|
19
|
+
- resource `projectId` may override provider config per resource; reads prefer explicit `projectId`, then the compound import ID, then provider config
|
|
20
|
+
- `agentcloud:apiUrl` may come from Pulumi config or `AC_API_URL`; `projectId` must come from Pulumi config or resource input, not an env fallback
|
|
21
|
+
- previews synthesize placeholder canonical IDs with zero suffixes until the API returns the real resource ID
|
|
22
|
+
- project-owned import IDs use `<projectId>/<resource_type>/<resource_id>`
|
|
23
|
+
- the provider does not use workspace-era identifiers in the product contract
|
|
24
|
+
- Provider connectivity and auth:
|
|
25
|
+
- `agentcloud infra init` persists `agentcloud:projectId` and `agentcloud:environment=prod`, but not `agentcloud:apiUrl`
|
|
26
|
+
- machine-side `agentcloud infra plan|apply|drift|destroy` uses the canonical remote Pulumi backend for the target stack
|
|
27
|
+
- `agentcloud infra apply` never implicitly reuses a default saved plan file; saved-plan apply happens only with `--plan-file`
|
|
28
|
+
- auth resolution order is `AC_BOOTSTRAP_TOKEN` exchange at `POST /v1/runtime-auth/exchange`, then `AC_TOKEN`, then `AC_TOKEN_FILE`, then `AC_SESSION_COOKIE`, then `AC_SESSION_FILE`, then `~/.agentcloud/session.cookie`
|
|
29
|
+
- `AC_TOKEN_FILE` is bearer-token-only and rejects cookie-form values
|
|
30
|
+
- `AC_SESSION_FILE` is cookie-only and rejects bearer-token-only values
|
|
31
|
+
- Provider surface:
|
|
32
|
+
- managed resources are `Secret`, `ProjectRole`, `ProjectRoleRule`, `ProjectRoleBinding`, `Database`, `Image`, `Machine`, `AgentConfiguration`, `Job`, `Service`, `ServiceDeploymentResource`, and `SlackConnection`
|
|
33
|
+
- invoke helpers are `permissionCatalog`, `agentRuns`, `messages`, `jobRuns`, `serviceDeployments`, `imageVersions`, `imageVersionsByImage`, and `logs`
|
|
34
|
+
- invoke helpers are project-scoped, read-only helpers; lifecycle ownership belongs to resources
|
|
35
|
+
- Resource lifecycle contract:
|
|
36
|
+
- `Secret`: `key` is immutable; update re-puts the value; reads never fetch plaintext back from the API and preserve the Pulumi-encrypted last-known value in state
|
|
37
|
+
- `ProjectRole`: `name` is immutable; update patches `description` only
|
|
38
|
+
- `ProjectRoleRule`: wraps role grants; `roleId` and `permission` are immutable; updates replace rule scope/resource selectors by deleting the old rule and granting a new one; validated rule selectors are limited to canonical product resource types
|
|
39
|
+
- `ProjectRoleBinding`: binds `subjectType + subjectId + roleId`; valid subject types are `user`, `agent_configuration`, `job`, `service`, and `public`; create de-duplicates by looking up an existing binding on conflict; updates are delete-and-recreate
|
|
40
|
+
- `Database`: create/read/delete only; `name` is immutable; state stays minimal with `projectId`, `name`, `databaseId`, and `status`; no restore, endpoint metadata, credentials metadata, cluster identifiers, AWS ARNs, or size classes are exposed
|
|
41
|
+
- `Image`: `name` and `sourceType` are immutable; updates patch `dockerfilePath`, `contextPath`, and `registryRef`; registry-source reads preserve explicit `registryRef` input when needed; delete retries deterministic `409` conflicts briefly before surfacing failure
|
|
42
|
+
- `Machine`: `name` is immutable; image version, size, and working directory update in place; reads treat `deleted` status as absent
|
|
43
|
+
- `AgentConfiguration`: this is the durable configuration object, not the runtime agent; `name` and `provider` are immutable; image version, size, working dir, model, Codex thinking, instructions, and idle timeouts update in place
|
|
44
|
+
- `Job`: `name` is immutable; image version, command, input schema, timeout, and max parallel runs update in place
|
|
45
|
+
- `Service`: `type` and `name` are immutable; `cpu`, `memoryMb`, `port`, and `healthcheckPath` update in place; reads expose live `status` and `serviceUrl`
|
|
46
|
+
- `ServiceDeploymentResource`: models service deploy operations, not the service definition; `projectId` and `serviceId` replace, `imageVersionId` replace, create/update call `POST /deploy` and wait up to 10 minutes for a `healthy` deployment, and a matching current healthy deployment is treated as idempotent success; delete is intentionally a no-op and does not rollback
|
|
47
|
+
- There is no standalone Pulumi `Function` resource. Function services expose manifest-backed functions from the deployed image and are managed through the `Service` plus `ServiceDeploymentResource` contract.
|
|
48
|
+
- Replace, import, and error semantics:
|
|
49
|
+
- default rule is dumb/simple mapping: safe scalar knobs update in place; ownership/identity fields replace
|
|
50
|
+
- canonical project-scoped import IDs exist for all managed resources; most resources can read/delete from the import ID alone, but `ProjectRoleRule` and `ProjectRoleBinding` currently still rely on state-carried IDs on follow-up read/delete
|
|
51
|
+
- surfaced provider errors preserve API `error_code`
|
|
52
|
+
- `400` maps to `InvalidArgument`
|
|
53
|
+
- `401` and `403` map to `PermissionDenied`
|
|
54
|
+
- `404` maps to `NotFound`
|
|
55
|
+
- `409` maps to `FailedPrecondition`
|
|
56
|
+
- delete treats `NotFound` as success for managed resources
|
|
57
|
+
- runtime agents are not Pulumi-managed resources
|
|
58
|
+
- Provider generality:
|
|
59
|
+
- the provider is product-level and project-agnostic
|
|
60
|
+
- it does not hardcode meta-project names, resource names, service names, or workflow assumptions
|
|
61
|
+
- it does not ship a `Project` resource and does not manage `projects.main_agent_configuration_id` or `projects.main_agent_id`
|
|
62
|
+
- project main-agent pointers remain API-managed or userland-managed
|
|
63
|
+
|
|
64
|
+
# Testing
|
|
65
|
+
- Fast proof: `npm run -w core/infra-pulumi-provider lint`.
|
|
66
|
+
- Provider proof: `(cd core/infra-pulumi-provider/provider && go test ./...)`.
|
|
67
|
+
- SDK proof: rerun `bash core/repo-tools/src/build-ac-pulumi-package.sh --version <version>` when schema/codegen, provider packaging, or plugin bootstrap changes.
|
|
68
|
+
- Install proof: run `bash core/repo-tools/src/smoke-ac-pulumi-npm-install.sh [--version <version>]` for the published package path.
|
|
69
|
+
|
|
70
|
+
# Deployment
|
|
71
|
+
- Ships as the published Pulumi provider and generated SDK package, not as a long-running runtime.
|
|
72
|
+
- Any provider contract change must be regenerated and republished before meta-project stacks consume it.
|
|
73
|
+
- Keep `package.json`, the Pulumi package metadata, and injected provider binary version aligned across release artifacts.
|
|
74
|
+
|
|
75
|
+
# Monitoring
|
|
76
|
+
- Watch provider apply/import failures, auth resolution regressions, schema drift, postinstall/plugin install regressions, and generated SDK mismatches against the live API.
|
|
77
|
+
- After release, validate at least one representative Pulumi program still previews and applies.
|
|
78
|
+
|
|
79
|
+
# Risks
|
|
80
|
+
- Provider drift breaks infrastructure reconciliation and meta-project deployment.
|
|
81
|
+
- Import/read drift is especially risky because Pulumi state adoption depends on canonical compound IDs working consistently.
|
|
82
|
+
- Never patch generated output without updating the underlying provider/schema pipeline.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class AgentConfiguration extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing AgentConfiguration resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
10
|
+
*/
|
|
11
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): AgentConfiguration;
|
|
12
|
+
/**
|
|
13
|
+
* Returns true if the given object is an instance of AgentConfiguration. This is designed to work even
|
|
14
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
15
|
+
*/
|
|
16
|
+
static isInstance(obj: any): obj is AgentConfiguration;
|
|
17
|
+
readonly agentConfigurationId: pulumi.Output<string>;
|
|
18
|
+
readonly cpu: pulumi.Output<number | undefined>;
|
|
19
|
+
readonly defaultSnapshotId: pulumi.Output<string | undefined>;
|
|
20
|
+
readonly idleDeleteAfterSeconds: pulumi.Output<number | undefined>;
|
|
21
|
+
readonly idleStopAfterSeconds: pulumi.Output<number | undefined>;
|
|
22
|
+
readonly instructions: pulumi.Output<string>;
|
|
23
|
+
readonly memoryMb: pulumi.Output<number | undefined>;
|
|
24
|
+
readonly model: pulumi.Output<string>;
|
|
25
|
+
readonly name: pulumi.Output<string>;
|
|
26
|
+
readonly projectId: pulumi.Output<string | undefined>;
|
|
27
|
+
readonly provider: pulumi.Output<string>;
|
|
28
|
+
readonly storageGiB: pulumi.Output<number | undefined>;
|
|
29
|
+
readonly thinking: pulumi.Output<string | undefined>;
|
|
30
|
+
readonly workingDir: pulumi.Output<string | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* Create a AgentConfiguration resource with the given unique name, arguments, and options.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resource.
|
|
35
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
36
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
37
|
+
*/
|
|
38
|
+
constructor(name: string, args: AgentConfigurationArgs, opts?: pulumi.CustomResourceOptions);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The set of arguments for constructing a AgentConfiguration resource.
|
|
42
|
+
*/
|
|
43
|
+
export interface AgentConfigurationArgs {
|
|
44
|
+
cpu?: pulumi.Input<number>;
|
|
45
|
+
defaultSnapshotId?: pulumi.Input<string>;
|
|
46
|
+
idleDeleteAfterSeconds?: pulumi.Input<number>;
|
|
47
|
+
idleStopAfterSeconds?: pulumi.Input<number>;
|
|
48
|
+
instructions: pulumi.Input<string>;
|
|
49
|
+
memoryMb?: pulumi.Input<number>;
|
|
50
|
+
model: pulumi.Input<string>;
|
|
51
|
+
name: pulumi.Input<string>;
|
|
52
|
+
projectId?: pulumi.Input<string>;
|
|
53
|
+
provider: pulumi.Input<string>;
|
|
54
|
+
storageGiB?: pulumi.Input<number>;
|
|
55
|
+
thinking?: pulumi.Input<string>;
|
|
56
|
+
workingDir?: pulumi.Input<string>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AgentConfiguration = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class AgentConfiguration extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing AgentConfiguration resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name, id, opts) {
|
|
18
|
+
return new AgentConfiguration(name, undefined, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns true if the given object is an instance of AgentConfiguration. This is designed to work even
|
|
22
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
|
+
*/
|
|
24
|
+
static isInstance(obj) {
|
|
25
|
+
if (obj === undefined || obj === null) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return obj['__pulumiType'] === AgentConfiguration.__pulumiType;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Create a AgentConfiguration resource with the given unique name, arguments, and options.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resource.
|
|
34
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
35
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
36
|
+
*/
|
|
37
|
+
constructor(name, args, opts) {
|
|
38
|
+
let resourceInputs = {};
|
|
39
|
+
opts = opts || {};
|
|
40
|
+
if (!opts.id) {
|
|
41
|
+
if (args?.instructions === undefined && !opts.urn) {
|
|
42
|
+
throw new Error("Missing required property 'instructions'");
|
|
43
|
+
}
|
|
44
|
+
if (args?.model === undefined && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'model'");
|
|
46
|
+
}
|
|
47
|
+
if (args?.name === undefined && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'name'");
|
|
49
|
+
}
|
|
50
|
+
if (args?.provider === undefined && !opts.urn) {
|
|
51
|
+
throw new Error("Missing required property 'provider'");
|
|
52
|
+
}
|
|
53
|
+
resourceInputs["cpu"] = args?.cpu;
|
|
54
|
+
resourceInputs["defaultSnapshotId"] = args?.defaultSnapshotId;
|
|
55
|
+
resourceInputs["idleDeleteAfterSeconds"] = args?.idleDeleteAfterSeconds;
|
|
56
|
+
resourceInputs["idleStopAfterSeconds"] = args?.idleStopAfterSeconds;
|
|
57
|
+
resourceInputs["instructions"] = args?.instructions;
|
|
58
|
+
resourceInputs["memoryMb"] = args?.memoryMb;
|
|
59
|
+
resourceInputs["model"] = args?.model;
|
|
60
|
+
resourceInputs["name"] = args?.name;
|
|
61
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
62
|
+
resourceInputs["provider"] = args?.provider;
|
|
63
|
+
resourceInputs["storageGiB"] = args?.storageGiB;
|
|
64
|
+
resourceInputs["thinking"] = args?.thinking;
|
|
65
|
+
resourceInputs["workingDir"] = args?.workingDir;
|
|
66
|
+
resourceInputs["agentConfigurationId"] = undefined /*out*/;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
resourceInputs["agentConfigurationId"] = undefined /*out*/;
|
|
70
|
+
resourceInputs["cpu"] = undefined /*out*/;
|
|
71
|
+
resourceInputs["defaultSnapshotId"] = undefined /*out*/;
|
|
72
|
+
resourceInputs["idleDeleteAfterSeconds"] = undefined /*out*/;
|
|
73
|
+
resourceInputs["idleStopAfterSeconds"] = undefined /*out*/;
|
|
74
|
+
resourceInputs["instructions"] = undefined /*out*/;
|
|
75
|
+
resourceInputs["memoryMb"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["model"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["projectId"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["provider"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["storageGiB"] = undefined /*out*/;
|
|
81
|
+
resourceInputs["thinking"] = undefined /*out*/;
|
|
82
|
+
resourceInputs["workingDir"] = undefined /*out*/;
|
|
83
|
+
}
|
|
84
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
85
|
+
const replaceOnChanges = { replaceOnChanges: ["projectId"] };
|
|
86
|
+
opts = pulumi.mergeOptions(opts, replaceOnChanges);
|
|
87
|
+
super(AgentConfiguration.__pulumiType, name, resourceInputs, opts);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.AgentConfiguration = AgentConfiguration;
|
|
91
|
+
/** @internal */
|
|
92
|
+
AgentConfiguration.__pulumiType = 'agentcloud:index:AgentConfiguration';
|
|
93
|
+
//# sourceMappingURL=agentConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentConfiguration.js","sourceRoot":"","sources":["../agentConfiguration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAiBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAA4B,EAAE,IAAmC;QACvF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,C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gBAAgB,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QACnD,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAnGL,gDAoGC;AAvFG,gBAAgB;AACO,+BAAY,GAAG,qCAAqC,CAAC"}
|
package/dist/agentRuns.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as outputs from "./types/output";
|
|
3
3
|
export declare function agentRuns(args?: AgentRunsArgs, opts?: pulumi.InvokeOptions): Promise<AgentRunsResult>;
|
|
4
4
|
export interface AgentRunsArgs {
|
|
5
|
+
agentConfigurationId?: string;
|
|
5
6
|
cursor?: string;
|
|
6
7
|
limit?: number;
|
|
7
8
|
projectId?: string;
|
|
@@ -12,6 +13,7 @@ export interface AgentRunsResult {
|
|
|
12
13
|
}
|
|
13
14
|
export declare function agentRunsOutput(args?: AgentRunsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<AgentRunsResult>;
|
|
14
15
|
export interface AgentRunsOutputArgs {
|
|
16
|
+
agentConfigurationId?: pulumi.Input<string>;
|
|
15
17
|
cursor?: pulumi.Input<string>;
|
|
16
18
|
limit?: pulumi.Input<number>;
|
|
17
19
|
projectId?: pulumi.Input<string>;
|
package/dist/agentRuns.js
CHANGED
|
@@ -9,6 +9,7 @@ function agentRuns(args, opts) {
|
|
|
9
9
|
args = args || {};
|
|
10
10
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
11
11
|
return pulumi.runtime.invoke("agentcloud:index:agentRuns", {
|
|
12
|
+
"agentConfigurationId": args.agentConfigurationId,
|
|
12
13
|
"cursor": args.cursor,
|
|
13
14
|
"limit": args.limit,
|
|
14
15
|
"projectId": args.projectId,
|
|
@@ -19,6 +20,7 @@ function agentRunsOutput(args, opts) {
|
|
|
19
20
|
args = args || {};
|
|
20
21
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
22
|
return pulumi.runtime.invokeOutput("agentcloud:index:agentRuns", {
|
|
23
|
+
"agentConfigurationId": args.agentConfigurationId,
|
|
22
24
|
"cursor": args.cursor,
|
|
23
25
|
"limit": args.limit,
|
|
24
26
|
"projectId": args.projectId,
|
package/dist/agentRuns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentRuns.js","sourceRoot":"","sources":["../agentRuns.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4BAA4B,EAAE;QACvD,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;
|
|
1
|
+
{"version":3,"file":"agentRuns.js","sourceRoot":"","sources":["../agentRuns.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4BAA4B,EAAE;QACvD,sBAAsB,EAAE,IAAI,CAAC,oBAAoB;QACjD,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,8BASC;AAaD,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAAiC;IACzF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4BAA4B,EAAE;QAC7D,sBAAsB,EAAE,IAAI,CAAC,oBAAoB;QACjD,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0CASC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class Database extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing Database resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
10
|
+
*/
|
|
11
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Database;
|
|
12
|
+
/**
|
|
13
|
+
* Returns true if the given object is an instance of Database. This is designed to work even
|
|
14
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
15
|
+
*/
|
|
16
|
+
static isInstance(obj: any): obj is Database;
|
|
17
|
+
readonly databaseId: pulumi.Output<string>;
|
|
18
|
+
readonly name: pulumi.Output<string>;
|
|
19
|
+
readonly projectId: pulumi.Output<string | undefined>;
|
|
20
|
+
readonly status: pulumi.Output<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Create a Database resource with the given unique name, arguments, and options.
|
|
23
|
+
*
|
|
24
|
+
* @param name The _unique_ name of the resource.
|
|
25
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
26
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
27
|
+
*/
|
|
28
|
+
constructor(name: string, args: DatabaseArgs, opts?: pulumi.CustomResourceOptions);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The set of arguments for constructing a Database resource.
|
|
32
|
+
*/
|
|
33
|
+
export interface DatabaseArgs {
|
|
34
|
+
name: pulumi.Input<string>;
|
|
35
|
+
projectId?: pulumi.Input<string>;
|
|
36
|
+
}
|
package/dist/database.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Database = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Database extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Database resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name, id, opts) {
|
|
18
|
+
return new Database(name, undefined, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns true if the given object is an instance of Database. This is designed to work even
|
|
22
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
|
+
*/
|
|
24
|
+
static isInstance(obj) {
|
|
25
|
+
if (obj === undefined || obj === null) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return obj['__pulumiType'] === Database.__pulumiType;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Create a Database resource with the given unique name, arguments, and options.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resource.
|
|
34
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
35
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
36
|
+
*/
|
|
37
|
+
constructor(name, args, opts) {
|
|
38
|
+
let resourceInputs = {};
|
|
39
|
+
opts = opts || {};
|
|
40
|
+
if (!opts.id) {
|
|
41
|
+
if (args?.name === undefined && !opts.urn) {
|
|
42
|
+
throw new Error("Missing required property 'name'");
|
|
43
|
+
}
|
|
44
|
+
resourceInputs["name"] = args?.name;
|
|
45
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
46
|
+
resourceInputs["databaseId"] = undefined /*out*/;
|
|
47
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
resourceInputs["databaseId"] = undefined /*out*/;
|
|
51
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
52
|
+
resourceInputs["projectId"] = undefined /*out*/;
|
|
53
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
54
|
+
}
|
|
55
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
56
|
+
const replaceOnChanges = { replaceOnChanges: ["projectId"] };
|
|
57
|
+
opts = pulumi.mergeOptions(opts, replaceOnChanges);
|
|
58
|
+
super(Database.__pulumiType, name, resourceInputs, opts);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.Database = Database;
|
|
62
|
+
/** @internal */
|
|
63
|
+
Database.__pulumiType = 'agentcloud:index:Database';
|
|
64
|
+
//# sourceMappingURL=database.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database.js","sourceRoot":"","sources":["../database.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAOD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAAmC;QAC7E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;aAAM;YACH,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,gBAAgB,GAAG,EAAE,gBAAgB,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QACnD,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA5DL,4BA6DC;AAhDG,gBAAgB;AACO,qBAAY,GAAG,2BAA2B,CAAC"}
|
package/dist/image.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class Image extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing Image resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
10
|
+
*/
|
|
11
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Image;
|
|
12
|
+
/**
|
|
13
|
+
* Returns true if the given object is an instance of Image. This is designed to work even
|
|
14
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
15
|
+
*/
|
|
16
|
+
static isInstance(obj: any): obj is Image;
|
|
17
|
+
readonly buildComputeType: pulumi.Output<string | undefined>;
|
|
18
|
+
readonly buildEphemeralStorageGiB: pulumi.Output<number | undefined>;
|
|
19
|
+
readonly contextPath: pulumi.Output<string | undefined>;
|
|
20
|
+
readonly dockerfilePath: pulumi.Output<string | undefined>;
|
|
21
|
+
readonly imageId: pulumi.Output<string>;
|
|
22
|
+
readonly name: pulumi.Output<string>;
|
|
23
|
+
readonly projectId: pulumi.Output<string | undefined>;
|
|
24
|
+
readonly registryRef: pulumi.Output<string | undefined>;
|
|
25
|
+
readonly sourceType: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a Image resource with the given unique name, arguments, and options.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resource.
|
|
30
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
31
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
32
|
+
*/
|
|
33
|
+
constructor(name: string, args: ImageArgs, opts?: pulumi.CustomResourceOptions);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The set of arguments for constructing a Image resource.
|
|
37
|
+
*/
|
|
38
|
+
export interface ImageArgs {
|
|
39
|
+
buildComputeType?: pulumi.Input<string>;
|
|
40
|
+
buildEphemeralStorageGiB?: pulumi.Input<number>;
|
|
41
|
+
contextPath?: pulumi.Input<string>;
|
|
42
|
+
dockerfilePath?: pulumi.Input<string>;
|
|
43
|
+
name: pulumi.Input<string>;
|
|
44
|
+
projectId?: pulumi.Input<string>;
|
|
45
|
+
registryRef?: pulumi.Input<string>;
|
|
46
|
+
sourceType: pulumi.Input<string>;
|
|
47
|
+
}
|
package/dist/image.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Image = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Image extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Image resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name, id, opts) {
|
|
18
|
+
return new Image(name, undefined, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns true if the given object is an instance of Image. This is designed to work even
|
|
22
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
|
+
*/
|
|
24
|
+
static isInstance(obj) {
|
|
25
|
+
if (obj === undefined || obj === null) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return obj['__pulumiType'] === Image.__pulumiType;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Create a Image resource with the given unique name, arguments, and options.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resource.
|
|
34
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
35
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
36
|
+
*/
|
|
37
|
+
constructor(name, args, opts) {
|
|
38
|
+
let resourceInputs = {};
|
|
39
|
+
opts = opts || {};
|
|
40
|
+
if (!opts.id) {
|
|
41
|
+
if (args?.name === undefined && !opts.urn) {
|
|
42
|
+
throw new Error("Missing required property 'name'");
|
|
43
|
+
}
|
|
44
|
+
if (args?.sourceType === undefined && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'sourceType'");
|
|
46
|
+
}
|
|
47
|
+
resourceInputs["buildComputeType"] = args?.buildComputeType;
|
|
48
|
+
resourceInputs["buildEphemeralStorageGiB"] = args?.buildEphemeralStorageGiB;
|
|
49
|
+
resourceInputs["contextPath"] = args?.contextPath;
|
|
50
|
+
resourceInputs["dockerfilePath"] = args?.dockerfilePath;
|
|
51
|
+
resourceInputs["name"] = args?.name;
|
|
52
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
53
|
+
resourceInputs["registryRef"] = args?.registryRef;
|
|
54
|
+
resourceInputs["sourceType"] = args?.sourceType;
|
|
55
|
+
resourceInputs["imageId"] = undefined /*out*/;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
resourceInputs["buildComputeType"] = undefined /*out*/;
|
|
59
|
+
resourceInputs["buildEphemeralStorageGiB"] = undefined /*out*/;
|
|
60
|
+
resourceInputs["contextPath"] = undefined /*out*/;
|
|
61
|
+
resourceInputs["dockerfilePath"] = undefined /*out*/;
|
|
62
|
+
resourceInputs["imageId"] = undefined /*out*/;
|
|
63
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
64
|
+
resourceInputs["projectId"] = undefined /*out*/;
|
|
65
|
+
resourceInputs["registryRef"] = undefined /*out*/;
|
|
66
|
+
resourceInputs["sourceType"] = undefined /*out*/;
|
|
67
|
+
}
|
|
68
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
69
|
+
const replaceOnChanges = { replaceOnChanges: ["projectId"] };
|
|
70
|
+
opts = pulumi.mergeOptions(opts, replaceOnChanges);
|
|
71
|
+
super(Image.__pulumiType, name, resourceInputs, opts);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.Image = Image;
|
|
75
|
+
/** @internal */
|
|
76
|
+
Image.__pulumiType = 'agentcloud:index:Image';
|
|
77
|
+
//# sourceMappingURL=image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../image.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iF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B;AACO,kBAAY,GAAG,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
export declare function imageVersions(args: ImageVersionsArgs, opts?: pulumi.InvokeOptions): Promise<ImageVersionsResult>;
|
|
4
|
+
export interface ImageVersionsArgs {
|
|
5
|
+
imageVersionId: string;
|
|
6
|
+
projectId?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ImageVersionsResult {
|
|
9
|
+
readonly imageVersion: outputs.ImageVersion;
|
|
10
|
+
}
|
|
11
|
+
export declare function imageVersionsOutput(args: ImageVersionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<ImageVersionsResult>;
|
|
12
|
+
export interface ImageVersionsOutputArgs {
|
|
13
|
+
imageVersionId: pulumi.Input<string>;
|
|
14
|
+
projectId?: pulumi.Input<string>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.imageVersionsOutput = exports.imageVersions = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
function imageVersions(args, opts) {
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("agentcloud:index:imageVersions", {
|
|
11
|
+
"imageVersionId": args.imageVersionId,
|
|
12
|
+
"projectId": args.projectId,
|
|
13
|
+
}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.imageVersions = imageVersions;
|
|
16
|
+
function imageVersionsOutput(args, opts) {
|
|
17
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
18
|
+
return pulumi.runtime.invokeOutput("agentcloud:index:imageVersions", {
|
|
19
|
+
"imageVersionId": args.imageVersionId,
|
|
20
|
+
"projectId": args.projectId,
|
|
21
|
+
}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.imageVersionsOutput = imageVersionsOutput;
|
|
24
|
+
//# sourceMappingURL=imageVersions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imageVersions.js","sourceRoot":"","sources":["../imageVersions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sCAMC;AAUD,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAAiC;IAChG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gCAAgC,EAAE;QACjE,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kDAMC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
export declare function imageVersionsByImage(args: ImageVersionsByImageArgs, opts?: pulumi.InvokeOptions): Promise<ImageVersionsByImageResult>;
|
|
4
|
+
export interface ImageVersionsByImageArgs {
|
|
5
|
+
cursor?: string;
|
|
6
|
+
imageId: string;
|
|
7
|
+
limit?: number;
|
|
8
|
+
projectId?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ImageVersionsByImageResult {
|
|
11
|
+
readonly items: outputs.ImageVersion[];
|
|
12
|
+
readonly nextCursor?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function imageVersionsByImageOutput(args: ImageVersionsByImageOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<ImageVersionsByImageResult>;
|
|
15
|
+
export interface ImageVersionsByImageOutputArgs {
|
|
16
|
+
cursor?: pulumi.Input<string>;
|
|
17
|
+
imageId: pulumi.Input<string>;
|
|
18
|
+
limit?: pulumi.Input<number>;
|
|
19
|
+
projectId?: pulumi.Input<string>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.imageVersionsByImageOutput = exports.imageVersionsByImage = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
function imageVersionsByImage(args, opts) {
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("agentcloud:index:imageVersionsByImage", {
|
|
11
|
+
"cursor": args.cursor,
|
|
12
|
+
"imageId": args.imageId,
|
|
13
|
+
"limit": args.limit,
|
|
14
|
+
"projectId": args.projectId,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.imageVersionsByImage = imageVersionsByImage;
|
|
18
|
+
function imageVersionsByImageOutput(args, opts) {
|
|
19
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
20
|
+
return pulumi.runtime.invokeOutput("agentcloud:index:imageVersionsByImage", {
|
|
21
|
+
"cursor": args.cursor,
|
|
22
|
+
"imageId": args.imageId,
|
|
23
|
+
"limit": args.limit,
|
|
24
|
+
"projectId": args.projectId,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.imageVersionsByImageOutput = imageVersionsByImageOutput;
|
|
28
|
+
//# sourceMappingURL=imageVersionsByImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imageVersionsByImage.js","sourceRoot":"","sources":["../imageVersionsByImage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oDAQC;AAaD,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAAiC;IAC9G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uCAAuC,EAAE;QACxE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gEAQC"}
|