@pulumi/gcp 6.3.0 → 6.4.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/apigateway/apiConfigIamBinding.d.ts +6 -0
- package/apigateway/apiConfigIamBinding.js +6 -0
- package/apigateway/apiConfigIamBinding.js.map +1 -1
- package/apigateway/apiConfigIamMember.d.ts +6 -0
- package/apigateway/apiConfigIamMember.js +6 -0
- package/apigateway/apiConfigIamMember.js.map +1 -1
- package/apigateway/apiConfigIamPolicy.d.ts +6 -0
- package/apigateway/apiConfigIamPolicy.js +6 -0
- package/apigateway/apiConfigIamPolicy.js.map +1 -1
- package/apigateway/apiIamBinding.d.ts +6 -0
- package/apigateway/apiIamBinding.js +6 -0
- package/apigateway/apiIamBinding.js.map +1 -1
- package/apigateway/apiIamMember.d.ts +6 -0
- package/apigateway/apiIamMember.js +6 -0
- package/apigateway/apiIamMember.js.map +1 -1
- package/apigateway/apiIamPolicy.d.ts +6 -0
- package/apigateway/apiIamPolicy.js +6 -0
- package/apigateway/apiIamPolicy.js.map +1 -1
- package/apigateway/gatewayIamBinding.d.ts +6 -0
- package/apigateway/gatewayIamBinding.js +6 -0
- package/apigateway/gatewayIamBinding.js.map +1 -1
- package/apigateway/gatewayIamMember.d.ts +6 -0
- package/apigateway/gatewayIamMember.js +6 -0
- package/apigateway/gatewayIamMember.js.map +1 -1
- package/apigateway/gatewayIamPolicy.d.ts +6 -0
- package/apigateway/gatewayIamPolicy.js +6 -0
- package/apigateway/gatewayIamPolicy.js.map +1 -1
- package/apigee/instance.d.ts +6 -6
- package/artifactregistry/repository.d.ts +3 -0
- package/artifactregistry/repository.js.map +1 -1
- package/artifactregistry/repositoryIamBinding.d.ts +6 -0
- package/artifactregistry/repositoryIamBinding.js +6 -0
- package/artifactregistry/repositoryIamBinding.js.map +1 -1
- package/artifactregistry/repositoryIamMember.d.ts +6 -0
- package/artifactregistry/repositoryIamMember.js +6 -0
- package/artifactregistry/repositoryIamMember.js.map +1 -1
- package/artifactregistry/repositoryIamPolicy.d.ts +6 -0
- package/artifactregistry/repositoryIamPolicy.js +6 -0
- package/artifactregistry/repositoryIamPolicy.js.map +1 -1
- package/bigtable/tableIamBinding.d.ts +4 -4
- package/bigtable/tableIamBinding.js +4 -4
- package/bigtable/tableIamMember.d.ts +4 -4
- package/bigtable/tableIamMember.js +4 -4
- package/bigtable/tableIamPolicy.d.ts +4 -4
- package/bigtable/tableIamPolicy.js +4 -4
- package/cloudbuild/workerPool.d.ts +41 -0
- package/cloudbuild/workerPool.js +6 -0
- package/cloudbuild/workerPool.js.map +1 -1
- package/cloudrun/service.d.ts +1 -1
- package/cloudrun/service.js +1 -1
- package/compute/index.d.ts +1 -0
- package/compute/index.js +1 -0
- package/compute/index.js.map +1 -1
- package/compute/machineImageIamBinding.d.ts +12 -0
- package/compute/machineImageIamBinding.js +12 -0
- package/compute/machineImageIamBinding.js.map +1 -1
- package/compute/machineImageIamMember.d.ts +12 -0
- package/compute/machineImageIamMember.js +12 -0
- package/compute/machineImageIamMember.js.map +1 -1
- package/compute/machineImageIamPolicy.d.ts +12 -0
- package/compute/machineImageIamPolicy.js +12 -0
- package/compute/machineImageIamPolicy.js.map +1 -1
- package/compute/regionAutoscaler.d.ts +17 -17
- package/compute/regionAutoscaler.js +17 -17
- package/compute/routerStatus.d.ts +80 -0
- package/compute/routerStatus.js +45 -0
- package/compute/routerStatus.js.map +1 -0
- package/container/cluster.d.ts +0 -3
- package/container/cluster.js.map +1 -1
- package/datacatalog/policyTagIamBinding.d.ts +6 -0
- package/datacatalog/policyTagIamBinding.js +6 -0
- package/datacatalog/policyTagIamBinding.js.map +1 -1
- package/datacatalog/policyTagIamMember.d.ts +6 -0
- package/datacatalog/policyTagIamMember.js +6 -0
- package/datacatalog/policyTagIamMember.js.map +1 -1
- package/datacatalog/policyTagIamPolicy.d.ts +6 -0
- package/datacatalog/policyTagIamPolicy.js +6 -0
- package/datacatalog/policyTagIamPolicy.js.map +1 -1
- package/datacatalog/taxonomyIamBinding.d.ts +6 -0
- package/datacatalog/taxonomyIamBinding.js +6 -0
- package/datacatalog/taxonomyIamBinding.js.map +1 -1
- package/datacatalog/taxonomyIamMember.d.ts +6 -0
- package/datacatalog/taxonomyIamMember.js +6 -0
- package/datacatalog/taxonomyIamMember.js.map +1 -1
- package/datacatalog/taxonomyIamPolicy.d.ts +6 -0
- package/datacatalog/taxonomyIamPolicy.js +6 -0
- package/datacatalog/taxonomyIamPolicy.js.map +1 -1
- package/notebooks/index.d.ts +1 -0
- package/notebooks/index.js +5 -0
- package/notebooks/index.js.map +1 -1
- package/notebooks/instance.d.ts +3 -3
- package/notebooks/runtime.d.ts +270 -0
- package/notebooks/runtime.js +193 -0
- package/notebooks/runtime.js.map +1 -0
- package/organizations/getFolders.d.ts +56 -0
- package/organizations/getFolders.js +44 -0
- package/organizations/getFolders.js.map +1 -0
- package/organizations/index.d.ts +1 -0
- package/organizations/index.js +1 -0
- package/organizations/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/redis/getInstance.d.ts +5 -0
- package/redis/getInstance.js.map +1 -1
- package/redis/instance.d.ts +103 -3
- package/redis/instance.js +38 -0
- package/redis/instance.js.map +1 -1
- package/servicedirectory/namespaceIamBinding.d.ts +7 -1
- package/servicedirectory/namespaceIamBinding.js +7 -1
- package/servicedirectory/namespaceIamBinding.js.map +1 -1
- package/servicedirectory/namespaceIamMember.d.ts +7 -1
- package/servicedirectory/namespaceIamMember.js +7 -1
- package/servicedirectory/namespaceIamMember.js.map +1 -1
- package/servicedirectory/namespaceIamPolicy.d.ts +7 -1
- package/servicedirectory/namespaceIamPolicy.js +7 -1
- package/servicedirectory/namespaceIamPolicy.js.map +1 -1
- package/servicedirectory/serviceIamBinding.d.ts +7 -1
- package/servicedirectory/serviceIamBinding.js +7 -1
- package/servicedirectory/serviceIamBinding.js.map +1 -1
- package/servicedirectory/serviceIamMember.d.ts +7 -1
- package/servicedirectory/serviceIamMember.js +7 -1
- package/servicedirectory/serviceIamMember.js.map +1 -1
- package/servicedirectory/serviceIamPolicy.d.ts +7 -1
- package/servicedirectory/serviceIamPolicy.js +7 -1
- package/servicedirectory/serviceIamPolicy.js.map +1 -1
- package/spanner/instance.d.ts +6 -6
- package/types/input.d.ts +413 -3
- package/types/output.d.ts +511 -3
- package/vertex/aiMetadataStore.d.ts +152 -0
- package/vertex/aiMetadataStore.js +86 -0
- package/vertex/aiMetadataStore.js.map +1 -0
- package/vertex/index.d.ts +1 -0
- package/vertex/index.js +5 -0
- package/vertex/index.js.map +1 -1
package/notebooks/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./instanceIamBinding"), exports);
|
|
|
21
21
|
__exportStar(require("./instanceIamMember"), exports);
|
|
22
22
|
__exportStar(require("./instanceIamPolicy"), exports);
|
|
23
23
|
__exportStar(require("./location"), exports);
|
|
24
|
+
__exportStar(require("./runtime"), exports);
|
|
24
25
|
// Import resources to register:
|
|
25
26
|
const environment_1 = require("./environment");
|
|
26
27
|
const instance_1 = require("./instance");
|
|
@@ -28,6 +29,7 @@ const instanceIamBinding_1 = require("./instanceIamBinding");
|
|
|
28
29
|
const instanceIamMember_1 = require("./instanceIamMember");
|
|
29
30
|
const instanceIamPolicy_1 = require("./instanceIamPolicy");
|
|
30
31
|
const location_1 = require("./location");
|
|
32
|
+
const runtime_1 = require("./runtime");
|
|
31
33
|
const _module = {
|
|
32
34
|
version: utilities.getVersion(),
|
|
33
35
|
construct: (name, type, urn) => {
|
|
@@ -44,6 +46,8 @@ const _module = {
|
|
|
44
46
|
return new instanceIamPolicy_1.InstanceIamPolicy(name, undefined, { urn });
|
|
45
47
|
case "gcp:notebooks/location:Location":
|
|
46
48
|
return new location_1.Location(name, undefined, { urn });
|
|
49
|
+
case "gcp:notebooks/runtime:Runtime":
|
|
50
|
+
return new runtime_1.Runtime(name, undefined, { urn });
|
|
47
51
|
default:
|
|
48
52
|
throw new Error(`unknown resource type ${type}`);
|
|
49
53
|
}
|
|
@@ -55,4 +59,5 @@ pulumi.runtime.registerResourceModule("gcp", "notebooks/instanceIamBinding", _mo
|
|
|
55
59
|
pulumi.runtime.registerResourceModule("gcp", "notebooks/instanceIamMember", _module);
|
|
56
60
|
pulumi.runtime.registerResourceModule("gcp", "notebooks/instanceIamPolicy", _module);
|
|
57
61
|
pulumi.runtime.registerResourceModule("gcp", "notebooks/location", _module);
|
|
62
|
+
pulumi.runtime.registerResourceModule("gcp", "notebooks/runtime", _module);
|
|
58
63
|
//# sourceMappingURL=index.js.map
|
package/notebooks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../notebooks/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,gDAA8B;AAC9B,6CAA2B;AAC3B,uDAAqC;AACrC,sDAAoC;AACpC,sDAAoC;AACpC,6CAA2B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../notebooks/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,gDAA8B;AAC9B,6CAA2B;AAC3B,uDAAqC;AACrC,sDAAoC;AACpC,sDAAoC;AACpC,6CAA2B;AAC3B,4CAA0B;AAE1B,gCAAgC;AAChC,+CAA4C;AAC5C,yCAAsC;AACtC,6DAA0D;AAC1D,2DAAwD;AACxD,2DAAwD;AACxD,yCAAsC;AACtC,uCAAoC;AAEpC,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,uCAAuC;gBACxC,OAAO,IAAI,yBAAW,CAAC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OAAO,CAAC,CAAA;AACpF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAC3E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA"}
|
package/notebooks/instance.d.ts
CHANGED
|
@@ -301,7 +301,7 @@ export declare class Instance extends pulumi.CustomResource {
|
|
|
301
301
|
*/
|
|
302
302
|
readonly subnet: pulumi.Output<string>;
|
|
303
303
|
/**
|
|
304
|
-
* The Compute Engine tags to add to
|
|
304
|
+
* The Compute Engine tags to add to instance.
|
|
305
305
|
*/
|
|
306
306
|
readonly tags: pulumi.Output<string[] | undefined>;
|
|
307
307
|
/**
|
|
@@ -493,7 +493,7 @@ export interface InstanceState {
|
|
|
493
493
|
*/
|
|
494
494
|
subnet?: pulumi.Input<string>;
|
|
495
495
|
/**
|
|
496
|
-
* The Compute Engine tags to add to
|
|
496
|
+
* The Compute Engine tags to add to instance.
|
|
497
497
|
*/
|
|
498
498
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
499
499
|
/**
|
|
@@ -669,7 +669,7 @@ export interface InstanceArgs {
|
|
|
669
669
|
*/
|
|
670
670
|
subnet?: pulumi.Input<string>;
|
|
671
671
|
/**
|
|
672
|
-
* The Compute Engine tags to add to
|
|
672
|
+
* The Compute Engine tags to add to instance.
|
|
673
673
|
*/
|
|
674
674
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
675
675
|
/**
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* A Cloud AI Platform Notebook runtime.
|
|
5
|
+
*
|
|
6
|
+
* > **Note:** Due to limitations of the Notebooks Runtime API, many fields
|
|
7
|
+
* in this resource do not properly detect drift. These fields will also not
|
|
8
|
+
* appear in state once imported.
|
|
9
|
+
*
|
|
10
|
+
* To get more information about Runtime, see:
|
|
11
|
+
*
|
|
12
|
+
* * [API documentation](https://cloud.google.com/ai-platform/notebooks/docs/reference/rest)
|
|
13
|
+
* * How-to Guides
|
|
14
|
+
* * [Official Documentation](https://cloud.google.com/ai-platform-notebooks)
|
|
15
|
+
*
|
|
16
|
+
* ## Example Usage
|
|
17
|
+
* ### Notebook Runtime Basic
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as gcp from "@pulumi/gcp";
|
|
22
|
+
*
|
|
23
|
+
* const runtime = new gcp.notebooks.Runtime("runtime", {
|
|
24
|
+
* accessConfig: {
|
|
25
|
+
* accessType: "SINGLE_USER",
|
|
26
|
+
* runtimeOwner: "admin@hashicorptest.com",
|
|
27
|
+
* },
|
|
28
|
+
* location: "us-central1",
|
|
29
|
+
* virtualMachine: {
|
|
30
|
+
* virtualMachineConfig: {
|
|
31
|
+
* dataDisk: {
|
|
32
|
+
* initializeParams: {
|
|
33
|
+
* diskSizeGb: 100,
|
|
34
|
+
* diskType: "PD_STANDARD",
|
|
35
|
+
* },
|
|
36
|
+
* },
|
|
37
|
+
* machineType: "n1-standard-4",
|
|
38
|
+
* },
|
|
39
|
+
* },
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
* ### Notebook Runtime Basic Gpu
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as gcp from "@pulumi/gcp";
|
|
47
|
+
*
|
|
48
|
+
* const runtimeGpu = new gcp.notebooks.Runtime("runtime_gpu", {
|
|
49
|
+
* accessConfig: {
|
|
50
|
+
* accessType: "SINGLE_USER",
|
|
51
|
+
* runtimeOwner: "admin@hashicorptest.com",
|
|
52
|
+
* },
|
|
53
|
+
* location: "us-central1",
|
|
54
|
+
* softwareConfig: {
|
|
55
|
+
* installGpuDriver: true,
|
|
56
|
+
* },
|
|
57
|
+
* virtualMachine: {
|
|
58
|
+
* virtualMachineConfig: {
|
|
59
|
+
* acceleratorConfig: {
|
|
60
|
+
* coreCount: 1,
|
|
61
|
+
* type: "NVIDIA_TESLA_V100",
|
|
62
|
+
* },
|
|
63
|
+
* dataDisk: {
|
|
64
|
+
* initializeParams: {
|
|
65
|
+
* diskSizeGb: 100,
|
|
66
|
+
* diskType: "PD_STANDARD",
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* machineType: "n1-standard-4",
|
|
70
|
+
* },
|
|
71
|
+
* },
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
* ### Notebook Runtime Basic Container
|
|
75
|
+
*
|
|
76
|
+
* ```typescript
|
|
77
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
78
|
+
* import * as gcp from "@pulumi/gcp";
|
|
79
|
+
*
|
|
80
|
+
* const runtimeContainer = new gcp.notebooks.Runtime("runtime_container", {
|
|
81
|
+
* accessConfig: {
|
|
82
|
+
* accessType: "SINGLE_USER",
|
|
83
|
+
* runtimeOwner: "admin@hashicorptest.com",
|
|
84
|
+
* },
|
|
85
|
+
* location: "us-central1",
|
|
86
|
+
* virtualMachine: {
|
|
87
|
+
* virtualMachineConfig: {
|
|
88
|
+
* containerImages: [
|
|
89
|
+
* {
|
|
90
|
+
* repository: "gcr.io/deeplearning-platform-release/base-cpu",
|
|
91
|
+
* tag: "latest",
|
|
92
|
+
* },
|
|
93
|
+
* {
|
|
94
|
+
* repository: "gcr.io/deeplearning-platform-release/beam-notebooks",
|
|
95
|
+
* tag: "latest",
|
|
96
|
+
* },
|
|
97
|
+
* ],
|
|
98
|
+
* dataDisk: {
|
|
99
|
+
* initializeParams: {
|
|
100
|
+
* diskSizeGb: 100,
|
|
101
|
+
* diskType: "PD_STANDARD",
|
|
102
|
+
* },
|
|
103
|
+
* },
|
|
104
|
+
* machineType: "n1-standard-4",
|
|
105
|
+
* },
|
|
106
|
+
* },
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* ## Import
|
|
111
|
+
*
|
|
112
|
+
* Runtime can be imported using any of these accepted formats
|
|
113
|
+
*
|
|
114
|
+
* ```sh
|
|
115
|
+
* $ pulumi import gcp:notebooks/runtime:Runtime default projects/{{project}}/locations/{{location}}/runtimes/{{name}}
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* ```sh
|
|
119
|
+
* $ pulumi import gcp:notebooks/runtime:Runtime default {{project}}/{{location}}/{{name}}
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
122
|
+
* ```sh
|
|
123
|
+
* $ pulumi import gcp:notebooks/runtime:Runtime default {{location}}/{{name}}
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
export declare class Runtime extends pulumi.CustomResource {
|
|
127
|
+
/**
|
|
128
|
+
* Get an existing Runtime resource's state with the given name, ID, and optional extra
|
|
129
|
+
* properties used to qualify the lookup.
|
|
130
|
+
*
|
|
131
|
+
* @param name The _unique_ name of the resulting resource.
|
|
132
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
133
|
+
* @param state Any extra arguments used during the lookup.
|
|
134
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
135
|
+
*/
|
|
136
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RuntimeState, opts?: pulumi.CustomResourceOptions): Runtime;
|
|
137
|
+
/**
|
|
138
|
+
* Returns true if the given object is an instance of Runtime. This is designed to work even
|
|
139
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
140
|
+
*/
|
|
141
|
+
static isInstance(obj: any): obj is Runtime;
|
|
142
|
+
/**
|
|
143
|
+
* The config settings for accessing runtime.
|
|
144
|
+
* Structure is documented below.
|
|
145
|
+
*/
|
|
146
|
+
readonly accessConfig: pulumi.Output<outputs.notebooks.RuntimeAccessConfig | undefined>;
|
|
147
|
+
/**
|
|
148
|
+
* The health state of this runtime. For a list of possible output values, see
|
|
149
|
+
* 'https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate'.
|
|
150
|
+
*/
|
|
151
|
+
readonly healthState: pulumi.Output<string>;
|
|
152
|
+
/**
|
|
153
|
+
* A reference to the zone where the machine resides.
|
|
154
|
+
*/
|
|
155
|
+
readonly location: pulumi.Output<string>;
|
|
156
|
+
/**
|
|
157
|
+
* Contains Runtime daemon metrics such as Service status and JupyterLab status
|
|
158
|
+
*/
|
|
159
|
+
readonly metrics: pulumi.Output<outputs.notebooks.RuntimeMetric[]>;
|
|
160
|
+
/**
|
|
161
|
+
* The name specified for the Notebook instance.
|
|
162
|
+
*/
|
|
163
|
+
readonly name: pulumi.Output<string>;
|
|
164
|
+
/**
|
|
165
|
+
* The ID of the project in which the resource belongs.
|
|
166
|
+
* If it is not provided, the provider project is used.
|
|
167
|
+
*/
|
|
168
|
+
readonly project: pulumi.Output<string>;
|
|
169
|
+
/**
|
|
170
|
+
* The config settings for software inside the runtime.
|
|
171
|
+
* Structure is documented below.
|
|
172
|
+
*/
|
|
173
|
+
readonly softwareConfig: pulumi.Output<outputs.notebooks.RuntimeSoftwareConfig | undefined>;
|
|
174
|
+
/**
|
|
175
|
+
* The state of this runtime.
|
|
176
|
+
*/
|
|
177
|
+
readonly state: pulumi.Output<string>;
|
|
178
|
+
/**
|
|
179
|
+
* Use a Compute Engine VM image to start the managed notebook instance.
|
|
180
|
+
* Structure is documented below.
|
|
181
|
+
*/
|
|
182
|
+
readonly virtualMachine: pulumi.Output<outputs.notebooks.RuntimeVirtualMachine | undefined>;
|
|
183
|
+
/**
|
|
184
|
+
* Create a Runtime resource with the given unique name, arguments, and options.
|
|
185
|
+
*
|
|
186
|
+
* @param name The _unique_ name of the resource.
|
|
187
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
188
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
189
|
+
*/
|
|
190
|
+
constructor(name: string, args: RuntimeArgs, opts?: pulumi.CustomResourceOptions);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Input properties used for looking up and filtering Runtime resources.
|
|
194
|
+
*/
|
|
195
|
+
export interface RuntimeState {
|
|
196
|
+
/**
|
|
197
|
+
* The config settings for accessing runtime.
|
|
198
|
+
* Structure is documented below.
|
|
199
|
+
*/
|
|
200
|
+
accessConfig?: pulumi.Input<inputs.notebooks.RuntimeAccessConfig>;
|
|
201
|
+
/**
|
|
202
|
+
* The health state of this runtime. For a list of possible output values, see
|
|
203
|
+
* 'https://cloud.google.com/vertex-ai/docs/workbench/ reference/rest/v1/projects.locations.runtimes#healthstate'.
|
|
204
|
+
*/
|
|
205
|
+
healthState?: pulumi.Input<string>;
|
|
206
|
+
/**
|
|
207
|
+
* A reference to the zone where the machine resides.
|
|
208
|
+
*/
|
|
209
|
+
location?: pulumi.Input<string>;
|
|
210
|
+
/**
|
|
211
|
+
* Contains Runtime daemon metrics such as Service status and JupyterLab status
|
|
212
|
+
*/
|
|
213
|
+
metrics?: pulumi.Input<pulumi.Input<inputs.notebooks.RuntimeMetric>[]>;
|
|
214
|
+
/**
|
|
215
|
+
* The name specified for the Notebook instance.
|
|
216
|
+
*/
|
|
217
|
+
name?: pulumi.Input<string>;
|
|
218
|
+
/**
|
|
219
|
+
* The ID of the project in which the resource belongs.
|
|
220
|
+
* If it is not provided, the provider project is used.
|
|
221
|
+
*/
|
|
222
|
+
project?: pulumi.Input<string>;
|
|
223
|
+
/**
|
|
224
|
+
* The config settings for software inside the runtime.
|
|
225
|
+
* Structure is documented below.
|
|
226
|
+
*/
|
|
227
|
+
softwareConfig?: pulumi.Input<inputs.notebooks.RuntimeSoftwareConfig>;
|
|
228
|
+
/**
|
|
229
|
+
* The state of this runtime.
|
|
230
|
+
*/
|
|
231
|
+
state?: pulumi.Input<string>;
|
|
232
|
+
/**
|
|
233
|
+
* Use a Compute Engine VM image to start the managed notebook instance.
|
|
234
|
+
* Structure is documented below.
|
|
235
|
+
*/
|
|
236
|
+
virtualMachine?: pulumi.Input<inputs.notebooks.RuntimeVirtualMachine>;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* The set of arguments for constructing a Runtime resource.
|
|
240
|
+
*/
|
|
241
|
+
export interface RuntimeArgs {
|
|
242
|
+
/**
|
|
243
|
+
* The config settings for accessing runtime.
|
|
244
|
+
* Structure is documented below.
|
|
245
|
+
*/
|
|
246
|
+
accessConfig?: pulumi.Input<inputs.notebooks.RuntimeAccessConfig>;
|
|
247
|
+
/**
|
|
248
|
+
* A reference to the zone where the machine resides.
|
|
249
|
+
*/
|
|
250
|
+
location: pulumi.Input<string>;
|
|
251
|
+
/**
|
|
252
|
+
* The name specified for the Notebook instance.
|
|
253
|
+
*/
|
|
254
|
+
name?: pulumi.Input<string>;
|
|
255
|
+
/**
|
|
256
|
+
* The ID of the project in which the resource belongs.
|
|
257
|
+
* If it is not provided, the provider project is used.
|
|
258
|
+
*/
|
|
259
|
+
project?: pulumi.Input<string>;
|
|
260
|
+
/**
|
|
261
|
+
* The config settings for software inside the runtime.
|
|
262
|
+
* Structure is documented below.
|
|
263
|
+
*/
|
|
264
|
+
softwareConfig?: pulumi.Input<inputs.notebooks.RuntimeSoftwareConfig>;
|
|
265
|
+
/**
|
|
266
|
+
* Use a Compute Engine VM image to start the managed notebook instance.
|
|
267
|
+
* Structure is documented below.
|
|
268
|
+
*/
|
|
269
|
+
virtualMachine?: pulumi.Input<inputs.notebooks.RuntimeVirtualMachine>;
|
|
270
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.Runtime = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* A Cloud AI Platform Notebook runtime.
|
|
10
|
+
*
|
|
11
|
+
* > **Note:** Due to limitations of the Notebooks Runtime API, many fields
|
|
12
|
+
* in this resource do not properly detect drift. These fields will also not
|
|
13
|
+
* appear in state once imported.
|
|
14
|
+
*
|
|
15
|
+
* To get more information about Runtime, see:
|
|
16
|
+
*
|
|
17
|
+
* * [API documentation](https://cloud.google.com/ai-platform/notebooks/docs/reference/rest)
|
|
18
|
+
* * How-to Guides
|
|
19
|
+
* * [Official Documentation](https://cloud.google.com/ai-platform-notebooks)
|
|
20
|
+
*
|
|
21
|
+
* ## Example Usage
|
|
22
|
+
* ### Notebook Runtime Basic
|
|
23
|
+
*
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
26
|
+
* import * as gcp from "@pulumi/gcp";
|
|
27
|
+
*
|
|
28
|
+
* const runtime = new gcp.notebooks.Runtime("runtime", {
|
|
29
|
+
* accessConfig: {
|
|
30
|
+
* accessType: "SINGLE_USER",
|
|
31
|
+
* runtimeOwner: "admin@hashicorptest.com",
|
|
32
|
+
* },
|
|
33
|
+
* location: "us-central1",
|
|
34
|
+
* virtualMachine: {
|
|
35
|
+
* virtualMachineConfig: {
|
|
36
|
+
* dataDisk: {
|
|
37
|
+
* initializeParams: {
|
|
38
|
+
* diskSizeGb: 100,
|
|
39
|
+
* diskType: "PD_STANDARD",
|
|
40
|
+
* },
|
|
41
|
+
* },
|
|
42
|
+
* machineType: "n1-standard-4",
|
|
43
|
+
* },
|
|
44
|
+
* },
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
* ### Notebook Runtime Basic Gpu
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as gcp from "@pulumi/gcp";
|
|
52
|
+
*
|
|
53
|
+
* const runtimeGpu = new gcp.notebooks.Runtime("runtime_gpu", {
|
|
54
|
+
* accessConfig: {
|
|
55
|
+
* accessType: "SINGLE_USER",
|
|
56
|
+
* runtimeOwner: "admin@hashicorptest.com",
|
|
57
|
+
* },
|
|
58
|
+
* location: "us-central1",
|
|
59
|
+
* softwareConfig: {
|
|
60
|
+
* installGpuDriver: true,
|
|
61
|
+
* },
|
|
62
|
+
* virtualMachine: {
|
|
63
|
+
* virtualMachineConfig: {
|
|
64
|
+
* acceleratorConfig: {
|
|
65
|
+
* coreCount: 1,
|
|
66
|
+
* type: "NVIDIA_TESLA_V100",
|
|
67
|
+
* },
|
|
68
|
+
* dataDisk: {
|
|
69
|
+
* initializeParams: {
|
|
70
|
+
* diskSizeGb: 100,
|
|
71
|
+
* diskType: "PD_STANDARD",
|
|
72
|
+
* },
|
|
73
|
+
* },
|
|
74
|
+
* machineType: "n1-standard-4",
|
|
75
|
+
* },
|
|
76
|
+
* },
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
* ### Notebook Runtime Basic Container
|
|
80
|
+
*
|
|
81
|
+
* ```typescript
|
|
82
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
83
|
+
* import * as gcp from "@pulumi/gcp";
|
|
84
|
+
*
|
|
85
|
+
* const runtimeContainer = new gcp.notebooks.Runtime("runtime_container", {
|
|
86
|
+
* accessConfig: {
|
|
87
|
+
* accessType: "SINGLE_USER",
|
|
88
|
+
* runtimeOwner: "admin@hashicorptest.com",
|
|
89
|
+
* },
|
|
90
|
+
* location: "us-central1",
|
|
91
|
+
* virtualMachine: {
|
|
92
|
+
* virtualMachineConfig: {
|
|
93
|
+
* containerImages: [
|
|
94
|
+
* {
|
|
95
|
+
* repository: "gcr.io/deeplearning-platform-release/base-cpu",
|
|
96
|
+
* tag: "latest",
|
|
97
|
+
* },
|
|
98
|
+
* {
|
|
99
|
+
* repository: "gcr.io/deeplearning-platform-release/beam-notebooks",
|
|
100
|
+
* tag: "latest",
|
|
101
|
+
* },
|
|
102
|
+
* ],
|
|
103
|
+
* dataDisk: {
|
|
104
|
+
* initializeParams: {
|
|
105
|
+
* diskSizeGb: 100,
|
|
106
|
+
* diskType: "PD_STANDARD",
|
|
107
|
+
* },
|
|
108
|
+
* },
|
|
109
|
+
* machineType: "n1-standard-4",
|
|
110
|
+
* },
|
|
111
|
+
* },
|
|
112
|
+
* });
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* ## Import
|
|
116
|
+
*
|
|
117
|
+
* Runtime can be imported using any of these accepted formats
|
|
118
|
+
*
|
|
119
|
+
* ```sh
|
|
120
|
+
* $ pulumi import gcp:notebooks/runtime:Runtime default projects/{{project}}/locations/{{location}}/runtimes/{{name}}
|
|
121
|
+
* ```
|
|
122
|
+
*
|
|
123
|
+
* ```sh
|
|
124
|
+
* $ pulumi import gcp:notebooks/runtime:Runtime default {{project}}/{{location}}/{{name}}
|
|
125
|
+
* ```
|
|
126
|
+
*
|
|
127
|
+
* ```sh
|
|
128
|
+
* $ pulumi import gcp:notebooks/runtime:Runtime default {{location}}/{{name}}
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
class Runtime extends pulumi.CustomResource {
|
|
132
|
+
constructor(name, argsOrState, opts) {
|
|
133
|
+
let inputs = {};
|
|
134
|
+
opts = opts || {};
|
|
135
|
+
if (opts.id) {
|
|
136
|
+
const state = argsOrState;
|
|
137
|
+
inputs["accessConfig"] = state ? state.accessConfig : undefined;
|
|
138
|
+
inputs["healthState"] = state ? state.healthState : undefined;
|
|
139
|
+
inputs["location"] = state ? state.location : undefined;
|
|
140
|
+
inputs["metrics"] = state ? state.metrics : undefined;
|
|
141
|
+
inputs["name"] = state ? state.name : undefined;
|
|
142
|
+
inputs["project"] = state ? state.project : undefined;
|
|
143
|
+
inputs["softwareConfig"] = state ? state.softwareConfig : undefined;
|
|
144
|
+
inputs["state"] = state ? state.state : undefined;
|
|
145
|
+
inputs["virtualMachine"] = state ? state.virtualMachine : undefined;
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
const args = argsOrState;
|
|
149
|
+
if ((!args || args.location === undefined) && !opts.urn) {
|
|
150
|
+
throw new Error("Missing required property 'location'");
|
|
151
|
+
}
|
|
152
|
+
inputs["accessConfig"] = args ? args.accessConfig : undefined;
|
|
153
|
+
inputs["location"] = args ? args.location : undefined;
|
|
154
|
+
inputs["name"] = args ? args.name : undefined;
|
|
155
|
+
inputs["project"] = args ? args.project : undefined;
|
|
156
|
+
inputs["softwareConfig"] = args ? args.softwareConfig : undefined;
|
|
157
|
+
inputs["virtualMachine"] = args ? args.virtualMachine : undefined;
|
|
158
|
+
inputs["healthState"] = undefined /*out*/;
|
|
159
|
+
inputs["metrics"] = undefined /*out*/;
|
|
160
|
+
inputs["state"] = undefined /*out*/;
|
|
161
|
+
}
|
|
162
|
+
if (!opts.version) {
|
|
163
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
164
|
+
}
|
|
165
|
+
super(Runtime.__pulumiType, name, inputs, opts);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Get an existing Runtime resource's state with the given name, ID, and optional extra
|
|
169
|
+
* properties used to qualify the lookup.
|
|
170
|
+
*
|
|
171
|
+
* @param name The _unique_ name of the resulting resource.
|
|
172
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
173
|
+
* @param state Any extra arguments used during the lookup.
|
|
174
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
175
|
+
*/
|
|
176
|
+
static get(name, id, state, opts) {
|
|
177
|
+
return new Runtime(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Returns true if the given object is an instance of Runtime. This is designed to work even
|
|
181
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
182
|
+
*/
|
|
183
|
+
static isInstance(obj) {
|
|
184
|
+
if (obj === undefined || obj === null) {
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
return obj['__pulumiType'] === Runtime.__pulumiType;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.Runtime = Runtime;
|
|
191
|
+
/** @internal */
|
|
192
|
+
Runtime.__pulumiType = 'gcp:notebooks/runtime:Runtime';
|
|
193
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../notebooks/runtime.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IA8E9C,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,MAAM,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CA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C,CAAC,SAAS,CAAC;YAClE,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,MAAM,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,MAAM,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtC,MAAM,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvC;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;IA9GD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BAgHC;AAlGG,gBAAgB;AACO,oBAAY,GAAG,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve information about a set of folders based on a parent ID. See the
|
|
5
|
+
* [REST API](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list)
|
|
6
|
+
* for more details.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
* ### Searching For Folders At The Root Of An Org
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as gcp from "@pulumi/gcp";
|
|
14
|
+
*
|
|
15
|
+
* const my-org-folders = gcp.organizations.getFolders({
|
|
16
|
+
* parentId: `organizations/${_var.organization_id}`,
|
|
17
|
+
* });
|
|
18
|
+
* const first-folder = my_org_folders.then(my_org_folders => gcp.organizations.getFolder({
|
|
19
|
+
* folder: my_org_folders.folders?[0]?.name,
|
|
20
|
+
* }));
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function getFolders(args: GetFoldersArgs, opts?: pulumi.InvokeOptions): Promise<GetFoldersResult>;
|
|
24
|
+
/**
|
|
25
|
+
* A collection of arguments for invoking getFolders.
|
|
26
|
+
*/
|
|
27
|
+
export interface GetFoldersArgs {
|
|
28
|
+
/**
|
|
29
|
+
* A string parent as defined in the [REST API](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list#query-parameters).
|
|
30
|
+
*/
|
|
31
|
+
parentId: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A collection of values returned by getFolders.
|
|
35
|
+
*/
|
|
36
|
+
export interface GetFoldersResult {
|
|
37
|
+
/**
|
|
38
|
+
* A list of projects matching the provided filter. Structure is defined below.
|
|
39
|
+
*/
|
|
40
|
+
readonly folders: outputs.organizations.GetFoldersFolder[];
|
|
41
|
+
/**
|
|
42
|
+
* The provider-assigned unique ID for this managed resource.
|
|
43
|
+
*/
|
|
44
|
+
readonly id: string;
|
|
45
|
+
readonly parentId: string;
|
|
46
|
+
}
|
|
47
|
+
export declare function getFoldersOutput(args: GetFoldersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFoldersResult>;
|
|
48
|
+
/**
|
|
49
|
+
* A collection of arguments for invoking getFolders.
|
|
50
|
+
*/
|
|
51
|
+
export interface GetFoldersOutputArgs {
|
|
52
|
+
/**
|
|
53
|
+
* A string parent as defined in the [REST API](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list#query-parameters).
|
|
54
|
+
*/
|
|
55
|
+
parentId: pulumi.Input<string>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.getFoldersOutput = exports.getFolders = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve information about a set of folders based on a parent ID. See the
|
|
10
|
+
* [REST API](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list)
|
|
11
|
+
* for more details.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
* ### Searching For Folders At The Root Of An Org
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as gcp from "@pulumi/gcp";
|
|
19
|
+
*
|
|
20
|
+
* const my-org-folders = gcp.organizations.getFolders({
|
|
21
|
+
* parentId: `organizations/${_var.organization_id}`,
|
|
22
|
+
* });
|
|
23
|
+
* const first-folder = my_org_folders.then(my_org_folders => gcp.organizations.getFolder({
|
|
24
|
+
* folder: my_org_folders.folders?[0]?.name,
|
|
25
|
+
* }));
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
function getFolders(args, opts) {
|
|
29
|
+
if (!opts) {
|
|
30
|
+
opts = {};
|
|
31
|
+
}
|
|
32
|
+
if (!opts.version) {
|
|
33
|
+
opts.version = utilities.getVersion();
|
|
34
|
+
}
|
|
35
|
+
return pulumi.runtime.invoke("gcp:organizations/getFolders:getFolders", {
|
|
36
|
+
"parentId": args.parentId,
|
|
37
|
+
}, opts);
|
|
38
|
+
}
|
|
39
|
+
exports.getFolders = getFolders;
|
|
40
|
+
function getFoldersOutput(args, opts) {
|
|
41
|
+
return pulumi.output(args).apply(a => getFolders(a, opts));
|
|
42
|
+
}
|
|
43
|
+
exports.getFoldersOutput = getFoldersOutput;
|
|
44
|
+
//# sourceMappingURL=getFolders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFolders.js","sourceRoot":"","sources":["../../organizations/getFolders.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,gCAWC;AA2BD,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9D,CAAC;AAFD,4CAEC"}
|
package/organizations/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from "./getBillingAccount";
|
|
|
5
5
|
export * from "./getClientConfig";
|
|
6
6
|
export * from "./getClientOpenIdUserInfo";
|
|
7
7
|
export * from "./getFolder";
|
|
8
|
+
export * from "./getFolders";
|
|
8
9
|
export * from "./getIAMPolicy";
|
|
9
10
|
export * from "./getOrganization";
|
|
10
11
|
export * from "./getProject";
|
package/organizations/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./getBillingAccount"), exports);
|
|
|
22
22
|
__exportStar(require("./getClientConfig"), exports);
|
|
23
23
|
__exportStar(require("./getClientOpenIdUserInfo"), exports);
|
|
24
24
|
__exportStar(require("./getFolder"), exports);
|
|
25
|
+
__exportStar(require("./getFolders"), exports);
|
|
25
26
|
__exportStar(require("./getIAMPolicy"), exports);
|
|
26
27
|
__exportStar(require("./getOrganization"), exports);
|
|
27
28
|
__exportStar(require("./getProject"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../organizations/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,2DAAyC;AACzC,2CAAyB;AACzB,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC;AAClC,4DAA0C;AAC1C,8CAA4B;AAC5B,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,mDAAiC;AACjC,+CAA6B;AAC7B,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B;AAC5B,2CAAyB;AACzB,4CAA0B;AAE1B,gCAAgC;AAChC,qEAAkE;AAClE,qCAAkC;AAClC,6CAA0C;AAC1C,mDAAgD;AAChD,2CAAwC;AACxC,2CAAwC;AACxC,qDAAkD;AAClD,qCAAkC;AAClC,uCAAoC;AAEpC,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;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